public class FileBasedFrontier extends BaseFrontier implements Frontier
emptyQueue, incoming, lock, outgoing, seenUrls, totalIncoming| Constructor and Description |
|---|
FileBasedFrontier(File queueDirectory,
com.codahale.metrics.MetricRegistry metrics,
int numQueues,
boolean persist) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Optional<CrawlUrl> |
popInternal() |
protected void |
pushInternal(CrawlUrl url) |
pop, pushpublic FileBasedFrontier(File queueDirectory, com.codahale.metrics.MetricRegistry metrics, int numQueues, boolean persist) throws IOException
IOExceptionprotected void pushInternal(CrawlUrl url)
pushInternal in class BaseFrontierprotected Optional<CrawlUrl> popInternal()
popInternal in class BaseFrontierpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class BaseFrontierIOExceptionCopyright © 2017. All rights reserved.