⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frontierhoststatistics.html

📁 用JAVA编写的,在做实验的时候留下来的,本来想删的,但是传上来,大家分享吧
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DD>Host has not been encountered by the Frontier, or has been encountered but has been inactive so long that it has expired.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.framework.FrontierHostStatistics.HOST_UNKNOWN">Constant Field Values</A></DL></DL><HR><A NAME="HOST_READY"><!-- --></A><H3>HOST_READY</H3><PRE>static final int <B>HOST_READY</B></PRE><DL><DD>Host has URIs ready to be emited.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.framework.FrontierHostStatistics.HOST_READY">Constant Field Values</A></DL></DL><HR><A NAME="HOST_INPROCESS"><!-- --></A><H3>HOST_INPROCESS</H3><PRE>static final int <B>HOST_INPROCESS</B></PRE><DL><DD>Host has URIs currently being proessed.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.framework.FrontierHostStatistics.HOST_INPROCESS">Constant Field Values</A></DL></DL><HR><A NAME="HOST_DEFERRED"><!-- --></A><H3>HOST_DEFERRED</H3><PRE>static final int <B>HOST_DEFERRED</B></PRE><DL><DD>Host has been deferred for some amount of time, will become ready once once that time has elapsed. This is most likely due to politeness or waiting between retries. Other conditions may exist.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.framework.FrontierHostStatistics.HOST_DEFERRED">Constant Field Values</A></DL></DL><HR><A NAME="HOST_INACTIVE"><!-- --></A><H3>HOST_INACTIVE</H3><PRE>static final int <B>HOST_INACTIVE</B></PRE><DL><DD>Host has been encountered and all availible URIs for it have been processed already. More URIs may become availible later or not. Inactive hosts may eventually become 'forgotten'.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.framework.FrontierHostStatistics.HOST_INACTIVE">Constant Field Values</A></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="activeHosts()"><!-- --></A><H3>activeHosts</H3><PRE>int <B>activeHosts</B>()</PRE><DL><DD>Total number of hosts that are currently active. <p>Active hosts are considered to be those that are ready, deferred or in process.<P><DD><DL><DT><B>Returns:</B><DD>Total number of hosts that are currently active.</DL></DD></DL><HR><A NAME="inactiveHosts()"><!-- --></A><H3>inactiveHosts</H3><PRE>int <B>inactiveHosts</B>()</PRE><DL><DD>Total number of inactive hosts. <p>Inactive hosts are those hosts that have been active but have now been exhausted and contain no more additional URIs.<P><DD><DL><DT><B>Returns:</B><DD>Total number of inactive hosts.</DL></DD></DL><HR><A NAME="deferredHosts()"><!-- --></A><H3>deferredHosts</H3><PRE>int <B>deferredHosts</B>()</PRE><DL><DD>Total number of deferred hosts. <p>Deferred hosts are currently active hosts that have been deferred from processing for the time being (becausee of politeness or waiting before retrying.<P><DD><DL><DT><B>Returns:</B><DD>Total number of deferred hosts.</DL></DD></DL><HR><A NAME="inProcessHosts()"><!-- --></A><H3>inProcessHosts</H3><PRE>int <B>inProcessHosts</B>()</PRE><DL><DD>Total number of hosts with URIs in process. <p>It is generally assumed that each host can have only 1 URI in process at the same time. However some frontiers may implement politeness differently meaning that the same host is both ready and in process. <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#activeHosts()"><CODE>activeHosts()</CODE></A> will not count them twice though.<P><DD><DL><DT><B>Returns:</B><DD>Total number of hosts with URIs in process.</DL></DD></DL><HR><A NAME="readyHosts()"><!-- --></A><H3>readyHosts</H3><PRE>int <B>readyHosts</B>()</PRE><DL><DD>Total number of hosts that have a URI ready for processing.<P><DD><DL><DT><B>Returns:</B><DD>Total number of hosts that have a URI ready for processing.</DL></DD></DL><HR><A NAME="hostStatus(java.lang.String)"><!-- --></A><H3>hostStatus</H3><PRE>int <B>hostStatus</B>(java.lang.String&nbsp;host)</PRE><DL><DD>Get the status of a host. <p>Hosts can be in one of the following states: <ul>     <li> <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_READY"><CODE>Ready</CODE></A>     <li> <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_INPROCESS"><CODE>In process</CODE></A>     <li> <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_DEFERRED"><CODE>deferred</CODE></A>     <li> <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_INACTIVE"><CODE>Inactive</CODE></A>     <li> <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_UNKNOWN"><CODE>Unknown</CODE></A> </ul> <p>Some Frontiers may allow a host to have more then one URI in process at the same time. In those cases it will be reported as <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_READY"><CODE>Ready</CODE></A> as long as it is has more URIs ready for processing. Only once it has no more possible URIs for processing will it be reported as <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_INPROCESS"><CODE>In process</CODE></A><P><DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - The name of the host to lookup the status for.<DT><B>Returns:</B><DD>The status of the specified host.<DT><B>See Also:</B><DD><A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_DEFERRED"><CODE>HOST_DEFERRED</CODE></A>, <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_INACTIVE"><CODE>HOST_INACTIVE</CODE></A>, <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_INPROCESS"><CODE>HOST_INPROCESS</CODE></A>, <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_READY"><CODE>HOST_READY</CODE></A>, <A HREF="../../../../org/archive/crawler/framework/FrontierHostStatistics.html#HOST_UNKNOWN"><CODE>HOST_UNKNOWN</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FrontierHostStatistics.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/archive/crawler/framework/Frontier.FrontierGroup.html" title="interface in org.archive.crawler.framework"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/archive/crawler/framework/FrontierMarker.html" title="interface in org.archive.crawler.framework"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?org/archive/crawler/framework/FrontierHostStatistics.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="FrontierHostStatistics.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 2003-2006 Internet Archive. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -