public class FetchItemQueue extends Object
Constructor and Description |
---|
FetchItemQueue(Configuration conf,
int maxThreads,
long crawlDelay,
long minCrawlDelay) |
Modifier and Type | Method and Description |
---|---|
void |
addFetchItem(FetchItem it) |
void |
addInProgressFetchItem(FetchItem it) |
void |
dump() |
int |
emptyQueue() |
void |
finishFetchItem(FetchItem it,
boolean asap) |
Text |
getCookie() |
FetchItem |
getFetchItem() |
int |
getInProgressSize() |
int |
getQueueSize() |
int |
incrementExceptionCounter() |
void |
setCookie(Text cookie) |
public FetchItemQueue(Configuration conf, int maxThreads, long crawlDelay, long minCrawlDelay)
public int emptyQueue()
public int getQueueSize()
public int getInProgressSize()
public int incrementExceptionCounter()
public void finishFetchItem(FetchItem it, boolean asap)
public void addFetchItem(FetchItem it)
public void addInProgressFetchItem(FetchItem it)
public FetchItem getFetchItem()
public void setCookie(Text cookie)
public Text getCookie()
public void dump()
Copyright © 2021 The Apache Software Foundation