📄 toepool.html
字号:
protected int <B>nextSerialNumber</B></PRE><DL><DL></DL></DL><HR><A NAME="targetSize"><!-- --></A><H3>targetSize</H3><PRE>protected int <B>targetSize</B></PRE><DL><DL></DL></DL><HR><A NAME="STANDARD_REPORT"><!-- --></A><H3>STANDARD_REPORT</H3><PRE>public static java.lang.String <B>STANDARD_REPORT</B></PRE><DL><DL></DL></DL><HR><A NAME="COMPACT_REPORT"><!-- --></A><H3>COMPACT_REPORT</H3><PRE>public static java.lang.String <B>COMPACT_REPORT</B></PRE><DL><DL></DL></DL><HR><A NAME="REPORTS"><!-- --></A><H3>REPORTS</H3><PRE>protected static java.lang.String[] <B>REPORTS</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ToePool(org.archive.crawler.framework.CrawlController)"><!-- --></A><H3>ToePool</H3><PRE>public <B>ToePool</B>(<A HREF="../../../../org/archive/crawler/framework/CrawlController.html" title="class in org.archive.crawler.framework">CrawlController</A> c)</PRE><DL><DD>Constructor. Creates a pool of ToeThreads.<P><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - A reference to the CrawlController for the current crawl.</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="cleanup()"><!-- --></A><H3>cleanup</H3><PRE>public void <B>cleanup</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getActiveToeCount()"><!-- --></A><H3>getActiveToeCount</H3><PRE>public int <B>getActiveToeCount</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of ToeThreads that are not available (Approximation).</DL></DD></DL><HR><A NAME="getToeCount()"><!-- --></A><H3>getToeCount</H3><PRE>public int <B>getToeCount</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of ToeThreads. This may include killed ToeThreads that were not replaced.</DL></DD></DL><HR><A NAME="setSize(int)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(int newsize)</PRE><DL><DD>Change the number of ToeThreads.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newsize</CODE> - The new number of ToeThreads.</DL></DD></DL><HR><A NAME="killThread(int, boolean)"><!-- --></A><H3>killThread</H3><PRE>public void <B>killThread</B>(int threadNumber, boolean replace)</PRE><DL><DD>Kills specified thread. Killed thread can be optionally replaced with a new thread. <p><b>WARNING:</b> This operation should be used with great care. It may destabilize the crawler.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>threadNumber</CODE> - Thread to kill<DD><CODE>replace</CODE> - If true then a new thread will be created to take the killed threads place. Otherwise the total number of threads will decrease by one.</DL></DD></DL><HR><A NAME="getController()"><!-- --></A><H3>getController</H3><PRE>public <A HREF="../../../../org/archive/crawler/framework/CrawlController.html" title="class in org.archive.crawler.framework">CrawlController</A> <B>getController</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Instance of CrawlController.</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="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="standardReportTo(java.io.PrintWriter)"><!-- --></A><H3>standardReportTo</H3><PRE>protected void <B>standardReportTo</B>(java.io.PrintWriter writer)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="compactReportTo(java.io.PrintWriter)"><!-- --></A><H3>compactReportTo</H3><PRE>protected void <B>compactReportTo</B>(java.io.PrintWriter writer)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="singleLineReportTo(java.io.PrintWriter)"><!-- --></A><H3>singleLineReportTo</H3><PRE>public void <B>singleLineReportTo</B>(java.io.PrintWriter w)</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>w</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><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><!-- ========= 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/ToePool.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/framework/StatisticsTracking.html" title="interface in org.archive.crawler.framework"><B>PREV CLASS</B></A> <A HREF="../../../../org/archive/crawler/framework/ToeThread.html" title="class 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/ToePool.html" target="_top"><B>FRAMES</B></A> <A HREF="ToePool.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -