dk.netarkivet.archive.indexserver
Class DigestIndexerWorker
java.lang.Object
dk.netarkivet.archive.indexserver.DigestIndexerWorker
- All Implemented Interfaces:
- java.util.concurrent.Callable<java.lang.Boolean>
public class DigestIndexerWorker
- extends java.lang.Object
- implements java.util.concurrent.Callable<java.lang.Boolean>
This worker class handles the indexing of one single crawl-log
and associated cdxfile.
Constructor Summary |
DigestIndexerWorker(java.lang.String indexpath,
java.lang.Long jobId,
java.io.File crawllogfile,
java.io.File cdxFile,
DigestOptions indexingOptions)
Constructor for the DigestIndexerWorker. |
Method Summary |
java.lang.Boolean |
call()
This method does the actual indexing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DigestIndexerWorker
public DigestIndexerWorker(java.lang.String indexpath,
java.lang.Long jobId,
java.io.File crawllogfile,
java.io.File cdxFile,
DigestOptions indexingOptions)
- Constructor for the DigestIndexerWorker.
- Parameters:
indexpath
- The full path to the indexjobId
- The ID of the job which logfiles are being indexedcrawllogfile
- The crawllog from the jobcdxFile
- The cdxfile from the jobindexingOptions
- The options for the indexing process.
call
public java.lang.Boolean call()
- This method does the actual indexing.
- Specified by:
call
in interface java.util.concurrent.Callable<java.lang.Boolean>
- Returns:
- true, if the indexing completes successfully;
otherwise it returns false