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

📄 workqueue.html

📁 一个开源的网页爬虫一个开源的网页爬虫一个开源的网页爬虫一个开源的网页爬虫一个开源的网页爬虫一个开源的网页爬虫
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>frontier</CODE> - WorkQueues manager.<DD><CODE>match</CODE> - the pattern to match<DT><B>Returns:</B><DD>count of deleted URIs<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there was a problem while deleting</DL></DD></DL><HR><A NAME="deleteItem(org.archive.crawler.frontier.WorkQueueFrontier, org.archive.crawler.datamodel.CrawlURI)"><!-- --></A><H3>deleteItem</H3><PRE>protected abstract void <B>deleteItem</B>(<A HREF="../../../../org/archive/crawler/frontier/WorkQueueFrontier.html" title="class in org.archive.crawler.frontier">WorkQueueFrontier</A>&nbsp;frontier,                                   <A HREF="../../../../org/archive/crawler/datamodel/CrawlURI.html" title="class in org.archive.crawler.datamodel">CrawlURI</A>&nbsp;item)                            throws java.io.IOException</PRE><DL><DD>Removes the given item from the queue.  This is only used to remove the first item in the queue, so it is not necessary to implement a random-access queue.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>frontier</CODE> - Work queues manager.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there was a problem while deleting the item</DL></DD></DL><HR><A NAME="peekItem(org.archive.crawler.frontier.WorkQueueFrontier)"><!-- --></A><H3>peekItem</H3><PRE>protected abstract <A HREF="../../../../org/archive/crawler/datamodel/CrawlURI.html" title="class in org.archive.crawler.datamodel">CrawlURI</A> <B>peekItem</B>(<A HREF="../../../../org/archive/crawler/frontier/WorkQueueFrontier.html" title="class in org.archive.crawler.frontier">WorkQueueFrontier</A>&nbsp;frontier)                              throws java.io.IOException</PRE><DL><DD>Returns first item from queue (does not delete)<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The peeked item, or null<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there was a problem while peeking</DL></DD></DL><HR><A NAME="suspend(org.archive.crawler.frontier.WorkQueueFrontier)"><!-- --></A><H3>suspend</H3><PRE>protected void <B>suspend</B>(<A HREF="../../../../org/archive/crawler/frontier/WorkQueueFrontier.html" title="class in org.archive.crawler.frontier">WorkQueueFrontier</A>&nbsp;frontier)                throws java.io.IOException</PRE><DL><DD>Suspends this WorkQueue. Closes all connections to resources etc.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>frontier</CODE> - <DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="resume(org.archive.crawler.frontier.WorkQueueFrontier)"><!-- --></A><H3>resume</H3><PRE>protected void <B>resume</B>(<A HREF="../../../../org/archive/crawler/frontier/WorkQueueFrontier.html" title="class in org.archive.crawler.frontier">WorkQueueFrontier</A>&nbsp;frontier)               throws java.io.IOException</PRE><DL><DD>Resumes this WorkQueue. Eventually opens connections to resources etc.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>frontier</CODE> - <DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="setActive(org.archive.crawler.frontier.WorkQueueFrontier, boolean)"><!-- --></A><H3>setActive</H3><PRE>public void <B>setActive</B>(<A HREF="../../../../org/archive/crawler/frontier/WorkQueueFrontier.html" title="class in org.archive.crawler.frontier">WorkQueueFrontier</A>&nbsp;frontier,                      boolean&nbsp;b)</PRE><DL><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="reportTo(java.io.PrintWriter)"><!-- --></A><H3>reportTo</H3><PRE>public void <B>reportTo</B>(java.io.PrintWriter&nbsp;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="singleLineReportTo(java.io.PrintWriter)"><!-- --></A><H3>singleLineReportTo</H3><PRE>public void <B>singleLineReportTo</B>(java.io.PrintWriter&nbsp;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><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.lang.String, java.io.PrintWriter)"><!-- --></A><H3>reportTo</H3><PRE>public void <B>reportTo</B>(java.lang.String&nbsp;name,                     java.io.PrintWriter&nbsp;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><DT><B>Parameters:</B><DD><CODE>writer</CODE> - <DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="getSubstats()"><!-- --></A><H3>getSubstats</H3><PRE>public <A HREF="../../../../org/archive/crawler/datamodel/CrawlSubstats.html" title="class in org.archive.crawler.datamodel">CrawlSubstats</A> <B>getSubstats</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/crawler/datamodel/CrawlSubstats.HasCrawlSubstats.html#getSubstats()">getSubstats</A></CODE> in interface <CODE><A HREF="../../../../org/archive/crawler/datamodel/CrawlSubstats.HasCrawlSubstats.html" title="interface in org.archive.crawler.datamodel">CrawlSubstats.HasCrawlSubstats</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setRetired(boolean)"><!-- --></A><H3>setRetired</H3><PRE>public void <B>setRetired</B>(boolean&nbsp;b)</PRE><DL><DD>Set the retired status of this queue.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - new value for retired status</DL></DD></DL><HR><A NAME="isRetired()"><!-- --></A><H3>isRetired</H3><PRE>public boolean <B>isRetired</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></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/WorkQueue.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/frontier/WagCostAssignmentPolicy.html" title="class in org.archive.crawler.frontier"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/archive/crawler/frontier/WorkQueueFrontier.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/WorkQueue.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="WorkQueue.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;<A HREF="#constructor_summary">CONSTR</A>&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;<A HREF="#constructor_detail">CONSTR</A>&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 + -