Package org.apache.nutch.fetcher
Class FetchItemQueue
java.lang.Object
org.apache.nutch.fetcher.FetchItemQueue
This class handles FetchItems which come from the same host ID (be it a
proto/hostname or proto/IP pair). It also keeps track of requests in
progress and elapsed time between requests.
-
Constructor Summary
ConstructorsConstructorDescriptionFetchItemQueue(Configuration conf, int maxThreads, long crawlDelay, long minCrawlDelay) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddump()intvoidfinishFetchItem(FetchItem it, boolean asap) intintintvoid
-
Constructor Details
-
FetchItemQueue
-
-
Method Details
-
emptyQueue
public int emptyQueue() -
getQueueSize
public int getQueueSize() -
getInProgressSize
public int getInProgressSize() -
incrementExceptionCounter
public int incrementExceptionCounter() -
finishFetchItem
-
addFetchItem
-
addInProgressFetchItem
-
getFetchItem
-
setCookie
-
getCookie
-
dump
public void dump()
-