public class IndexWorker extends Object implements Shutdownable
| Modifier and Type | Field and Description |
|---|---|
static String |
ARC_EXTENSION |
static String |
ARC_GZ_EXTENSION |
static String |
WARC_EXTENSION |
static String |
WARC_GZ_EXTENSION |
| Constructor and Description |
|---|
IndexWorker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doWork() |
UrlCanonicalizer |
getCanonicalizer() |
ResourceFileLocationDB |
getDb() |
long |
getInterval() |
IndexQueue |
getQueue() |
IndexClient |
getTarget() |
org.archive.util.iterator.CloseableIterator<CaptureSearchResult> |
indexFile(String pathOrUrl) |
void |
init() |
static void |
main(String[] args) |
void |
setCanonicalizer(UrlCanonicalizer canonicalizer) |
void |
setDb(ResourceFileLocationDB db) |
void |
setInterval(long interval) |
void |
setQueue(IndexQueue queue) |
void |
setTarget(IndexClient target) |
void |
shutdown()
Release any resources used by this ResourceIndex cleanly
|
public static final String ARC_EXTENSION
public static final String ARC_GZ_EXTENSION
public static final String WARC_EXTENSION
public static final String WARC_GZ_EXTENSION
public void init()
public void shutdown()
Shutdownableshutdown in interface Shutdownablepublic boolean doWork()
throws IOException
IOExceptionpublic org.archive.util.iterator.CloseableIterator<CaptureSearchResult> indexFile(String pathOrUrl) throws IOException
IOExceptionpublic static void main(String[] args)
args - public long getInterval()
public void setInterval(long interval)
interval - the interval to setpublic IndexQueue getQueue()
public void setQueue(IndexQueue queue)
queue - the queue to setpublic ResourceFileLocationDB getDb()
public void setDb(ResourceFileLocationDB db)
db - the db to setpublic IndexClient getTarget()
public void setTarget(IndexClient target)
target - the target to setpublic UrlCanonicalizer getCanonicalizer()
public void setCanonicalizer(UrlCanonicalizer canonicalizer)
canonicalizer - the canonicalizer to setCopyright © 2005–2015 IIPC. All rights reserved.