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

📄 bdbworkqueue.html

📁 用JAVA编写的,在做实验的时候留下来的,本来想删的,但是传上来,大家分享吧
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_06) on Wed Sep 27 16:03:07 PDT 2006 --><TITLE>BdbWorkQueue (Heritrix 1.10.1)</TITLE><META NAME="keywords" CONTENT="org.archive.crawler.frontier.BdbWorkQueue class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="BdbWorkQueue (Heritrix 1.10.1)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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/BdbWorkQueue.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/BdbMultipleWorkQueues.BdbFrontierMarker.html" title="class in org.archive.crawler.frontier"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../org/archive/crawler/frontier/BucketQueueAssignmentPolicy.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/BdbWorkQueue.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="BdbWorkQueue.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="#fields_inherited_from_class_org.archive.crawler.frontier.WorkQueue">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.archive.crawler.frontier</FONT><BR>Class BdbWorkQueue</H2><PRE>java.lang.Object  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html" title="class in org.archive.crawler.frontier">org.archive.crawler.frontier.WorkQueue</A>      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.archive.crawler.frontier.BdbWorkQueue</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Comparable, <A HREF="../../../../org/archive/crawler/datamodel/CrawlSubstats.HasCrawlSubstats.html" title="interface in org.archive.crawler.datamodel">CrawlSubstats.HasCrawlSubstats</A>, <A HREF="../../../../org/archive/crawler/framework/Frontier.FrontierGroup.html" title="interface in org.archive.crawler.framework">Frontier.FrontierGroup</A>, <A HREF="../../../../org/archive/util/Reporter.html" title="interface in org.archive.util">Reporter</A></DD></DL><HR><DL><DT><PRE>public class <B>BdbWorkQueue</B><DT>extends <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html" title="class in org.archive.crawler.frontier">WorkQueue</A><DT>implements java.lang.Comparable, java.io.Serializable</DL></PRE><P>One independent queue of items with the same 'classKey' (eg host).<P><P><DL><DT><B>Author:</B></DT>  <DD>gojomo</DD><DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#org.archive.crawler.frontier.BdbWorkQueue">Serialized Form</A></DL><HR><P><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_org.archive.crawler.frontier.WorkQueue"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from class org.archive.crawler.frontier.<A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html" title="class in org.archive.crawler.frontier">WorkQueue</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#classKey">classKey</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#substats">substats</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/archive/crawler/frontier/BdbWorkQueue.html#BdbWorkQueue(java.lang.String, org.archive.crawler.frontier.BdbFrontier)">BdbWorkQueue</A></B>(java.lang.String&nbsp;classKey,             <A HREF="../../../../org/archive/crawler/frontier/BdbFrontier.html" title="class in org.archive.crawler.frontier">BdbFrontier</A>&nbsp;frontier)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a virtual queue inside the given BdbMultipleWorkQueues</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/frontier/BdbWorkQueue.html#deleteItem(org.archive.crawler.frontier.WorkQueueFrontier, org.archive.crawler.datamodel.CrawlURI)">deleteItem</A></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;peekItem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the given item from the queue.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/frontier/BdbWorkQueue.html#deleteMatchingFromQueue(org.archive.crawler.frontier.WorkQueueFrontier, java.lang.String)">deleteMatchingFromQueue</A></B>(<A HREF="../../../../org/archive/crawler/frontier/WorkQueueFrontier.html" title="class in org.archive.crawler.frontier">WorkQueueFrontier</A>&nbsp;frontier,                        java.lang.String&nbsp;match)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete URIs matching the given pattern from this queue.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/frontier/BdbWorkQueue.html#getPrefixClassKey(byte[])">getPrefixClassKey</A></B>(byte[]&nbsp;byteArray)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/frontier/BdbWorkQueue.html#insertItem(org.archive.crawler.frontier.WorkQueueFrontier, org.archive.crawler.datamodel.CrawlURI)">insertItem</A></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;curi)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insert the given curi, whether it is already present or not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../org/archive/crawler/datamodel/CrawlURI.html" title="class in org.archive.crawler.datamodel">CrawlURI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/archive/crawler/frontier/BdbWorkQueue.html#peekItem(org.archive.crawler.frontier.WorkQueueFrontier)">peekItem</A></B>(<A HREF="../../../../org/archive/crawler/frontier/WorkQueueFrontier.html" title="class in org.archive.crawler.frontier">WorkQueueFrontier</A>&nbsp;frontier)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns first item from queue (does not delete)</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.archive.crawler.frontier.WorkQueue"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.archive.crawler.frontier.<A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html" title="class in org.archive.crawler.frontier">WorkQueue</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#clearHeld()">clearHeld</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#compareTo(java.lang.Object)">compareTo</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#deleteMatching(org.archive.crawler.frontier.WorkQueueFrontier, java.lang.String)">deleteMatching</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#dequeue(org.archive.crawler.frontier.WorkQueueFrontier)">dequeue</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#enqueue(org.archive.crawler.frontier.WorkQueueFrontier, org.archive.crawler.datamodel.CrawlURI)">enqueue</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#expend(int)">expend</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#getClassKey()">getClassKey</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#getCount()">getCount</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#getReports()">getReports</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#getSessionBalance()">getSessionBalance</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#getSubstats()">getSubstats</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#getTotalExpenditure()">getTotalExpenditure</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#getWakeTime()">getWakeTime</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#incrementSessionBalance(int)">incrementSessionBalance</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#isHeld()">isHeld</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#isOverBudget()">isOverBudget</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#isRetired()">isRetired</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#noteError(int)">noteError</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#peek(org.archive.crawler.frontier.WorkQueueFrontier)">peek</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#refund(int)">refund</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#reportTo(java.io.PrintWriter)">reportTo</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#reportTo(java.lang.String, java.io.PrintWriter)">reportTo</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#resume(org.archive.crawler.frontier.WorkQueueFrontier)">resume</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#setActive(org.archive.crawler.frontier.WorkQueueFrontier, boolean)">setActive</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#setHeld()">setHeld</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#setRetired(boolean)">setRetired</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#setSessionBalance(int)">setSessionBalance</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#setTotalBudget(long)">setTotalBudget</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#setWakeTime(long)">setWakeTime</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#singleLineLegend()">singleLineLegend</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#singleLineReport()">singleLineReport</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#singleLineReportTo(java.io.PrintWriter)">singleLineReportTo</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#suspend(org.archive.crawler.frontier.WorkQueueFrontier)">suspend</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#unpeek()">unpeek</A>, <A HREF="../../../../org/archive/crawler/frontier/WorkQueue.html#update(org.archive.crawler.frontier.WorkQueueFrontier, org.archive.crawler.datamodel.CrawlURI)">update</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR>

⌨️ 快捷键说明

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