dk.netarkivet.archive.indexserver
Class DigestIndexerWorker

java.lang.Object
  extended by 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
 

Constructor Detail

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 index
jobId - The ID of the job which logfiles are being indexed
crawllogfile - The crawllog from the job
cdxFile - The cdxfile from the job
indexingOptions - The options for the indexing process.
Method Detail

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