public class ArchiveFetcher extends Object implements Closeable
| Constructor and Description |
|---|
ArchiveFetcher(org.apache.hadoop.conf.Configuration conf,
String indexPath,
String dataPath,
com.codahale.metrics.MetricRegistry metrics,
int versionsToCheck) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<Snapshot> |
get(CrawlUrl url,
TimeSpecification referenceTime) |
public ArchiveFetcher(org.apache.hadoop.conf.Configuration conf,
String indexPath,
String dataPath,
com.codahale.metrics.MetricRegistry metrics,
int versionsToCheck)
throws IOException
IOExceptionpublic List<Snapshot> get(CrawlUrl url, TimeSpecification referenceTime) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017. All rights reserved.