📄 adaptiverevisitqueuelist.html
字号:
<DD><DL><DT><B>Parameters:</B><DD><CODE>hostName</CODE> - The host's name<DT><B>Returns:</B><DD>an AdaptiveRevisitHostQueue for the specified host</DL></DD></DL><HR><A NAME="createHQ(java.lang.String, int)"><!-- --></A><H3>createHQ</H3><PRE>public <A HREF="../../../../org/archive/crawler/frontier/AdaptiveRevisitHostQueue.html" title="class in org.archive.crawler.frontier">AdaptiveRevisitHostQueue</A> <B>createHQ</B>(java.lang.String hostName, int valence) throws java.io.IOException</PRE><DL><DD>Creates a new AdaptiveRevisitHostQueue. <p> If a HQ already existed for the specified hostName, the existing HQ is returned as it is. It's existing valence will <i>not</i> be updated to reflect a different valence.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hostName</CODE> - <DD><CODE>valence</CODE> - number of simultaneous connections allowed to this host<DT><B>Returns:</B><DD>the newly created HQ<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getTopHQ()"><!-- --></A><H3>getTopHQ</H3><PRE>public <A HREF="../../../../org/archive/crawler/frontier/AdaptiveRevisitHostQueue.html" title="class in org.archive.crawler.frontier">AdaptiveRevisitHostQueue</A> <B>getTopHQ</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public long <B>getSize</B>()</PRE><DL><DD>Returns the number of URIs in all the HQs in this list<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of URIs in all the HQs in this list</DL></DD></DL><HR><A NAME="getAverageDepth()"><!-- --></A><H3>getAverageDepth</H3><PRE>public long <B>getAverageDepth</B>()</PRE><DL><DD>Returns the average depth of all the HQs in this list<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the average depth of all the HQs in this list (rounded down)</DL></DD></DL><HR><A NAME="getDeepestQueueSize()"><!-- --></A><H3>getDeepestQueueSize</H3><PRE>public long <B>getDeepestQueueSize</B>()</PRE><DL><DD>Returns the size of the largest (deepest) queue.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the size of the largest (deepest) queue.</DL></DD></DL><HR><A NAME="getCongestionRatio()"><!-- --></A><H3>getCongestionRatio</H3><PRE>public float <B>getCongestionRatio</B>()</PRE><DL><DD>Returns the congestion ratio. <p> The congestion ratio is equal to the total number of queues divided by the number of queues currently being processed or are snozzed (i.e. not ready). A congestion ratio of 1 indicates no congestion.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the congestion ratio</DL></DD></DL><HR><A NAME="reorder(org.archive.crawler.frontier.AdaptiveRevisitHostQueue)"><!-- --></A><H3>reorder</H3><PRE>protected void <B>reorder</B>(<A HREF="../../../../org/archive/crawler/frontier/AdaptiveRevisitHostQueue.html" title="class in org.archive.crawler.frontier">AdaptiveRevisitHostQueue</A> hq)</PRE><DL><DD>This method reorders the host queues. Method is only called by the AdaptiveRevisitHostQueue that it 'owns' when their reported time of next ready is being updated.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hq</CODE> - The calling HQ</DL></DD></DL><HR><A NAME="getUriCount()"><!-- --></A><H3>getUriCount</H3><PRE>public long <B>getUriCount</B>()</PRE><DL><DD>The total number of URIs queued in all the HQs belonging to this list.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>total number of URIs queued in all the HQs belonging to this list.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()</PRE><DL><DD>Closes all HQs and the Environment.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getReports()"><!-- --></A><H3>getReports</H3><PRE>public java.lang.String[] <B>getReports</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/archive/util/Reporter.html#getReports()">Reporter</A></CODE></B></DD><DD>Get an array of report names offered by this Reporter. A name in brackets indicates a free-form String, in accordance with the informal description inside the brackets, may yield a useful report.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/util/Reporter.html#getReports()">getReports</A></CODE> in interface <CODE><A HREF="../../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>String array of report names, empty if there is only one report type</DL></DD></DL><HR><A NAME="singleLineReport()"><!-- --></A><H3>singleLineReport</H3><PRE>public java.lang.String <B>singleLineReport</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/archive/util/Reporter.html#singleLineReport()">Reporter</A></CODE></B></DD><DD>Return a short single-line summary report as a String.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/util/Reporter.html#singleLineReport()">singleLineReport</A></CODE> in interface <CODE><A HREF="../../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>String single-line summary report</DL></DD></DL><HR><A NAME="reportTo(java.io.PrintWriter)"><!-- --></A><H3>reportTo</H3><PRE>public void <B>reportTo</B>(java.io.PrintWriter writer)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/archive/util/Reporter.html#reportTo(java.io.PrintWriter)">Reporter</A></CODE></B></DD><DD>Make a default report to the passed-in Writer. Should be equivalent to reportTo(null, writer)<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/util/Reporter.html#reportTo(java.io.PrintWriter)">reportTo</A></CODE> in interface <CODE><A HREF="../../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - to receive report</DL></DD></DL><HR><A NAME="reportTo(java.lang.String, java.io.PrintWriter)"><!-- --></A><H3>reportTo</H3><PRE>public void <B>reportTo</B>(java.lang.String name, java.io.PrintWriter writer)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/archive/util/Reporter.html#reportTo(java.lang.String, java.io.PrintWriter)">Reporter</A></CODE></B></DD><DD>Make a report of the given name to the passed-in Writer, If null, give the default report.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/util/Reporter.html#reportTo(java.lang.String, java.io.PrintWriter)">reportTo</A></CODE> in interface <CODE><A HREF="../../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A></CODE></DL></DD><DD><DL><DD><CODE>writer</CODE> - to receive report</DL></DD></DL><HR><A NAME="singleLineReportTo(java.io.PrintWriter)"><!-- --></A><H3>singleLineReportTo</H3><PRE>public void <B>singleLineReportTo</B>(java.io.PrintWriter writer)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/archive/util/Reporter.html#singleLineReportTo(java.io.PrintWriter)">Reporter</A></CODE></B></DD><DD>Make a single-line summary report to the passed-in writer<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/util/Reporter.html#singleLineReportTo(java.io.PrintWriter)">singleLineReportTo</A></CODE> in interface <CODE><A HREF="../../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - to receive report</DL></DD></DL><HR><A NAME="singleLineLegend()"><!-- --></A><H3>singleLineLegend</H3><PRE>public java.lang.String <B>singleLineLegend</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/archive/util/Reporter.html#singleLineLegend()">Reporter</A></CODE></B></DD><DD>Return a legend for the single-line summary report as a String.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/util/Reporter.html#singleLineLegend()">singleLineLegend</A></CODE> in interface <CODE><A HREF="../../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>String single-line summary legend</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AdaptiveRevisitQueueList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/archive/crawler/frontier/AdaptiveRevisitHostQueue.html" title="class in org.archive.crawler.frontier"><B>PREV CLASS</B></A> <A HREF="../../../../org/archive/crawler/frontier/AntiCalendarCostAssignmentPolicy.html" title="class in org.archive.crawler.frontier"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/archive/crawler/frontier/AdaptiveRevisitQueueList.html" target="_top"><B>FRAMES</B></A> <A HREF="AdaptiveRevisitQueueList.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 2003-2006 Internet Archive. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -