dk.netarkivet.common.utils.cdx
Class GetCDXRecordsBatchJob

java.lang.Object
  extended by dk.netarkivet.common.utils.batch.FileBatchJob
      extended by dk.netarkivet.common.utils.arc.ARCBatchJob
          extended by dk.netarkivet.common.utils.cdx.GetCDXRecordsBatchJob
All Implemented Interfaces:
java.io.Serializable

public class GetCDXRecordsBatchJob
extends ARCBatchJob

Job to get cdx records out of metadata files.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class dk.netarkivet.common.utils.batch.FileBatchJob
FileBatchJob.ExceptionOccurrence
 
Field Summary
 
Fields inherited from class dk.netarkivet.common.utils.arc.ARCBatchJob
noOfRecordsProcessed
 
Fields inherited from class dk.netarkivet.common.utils.batch.FileBatchJob
batchJobTimeout, exceptions, filesFailed, noOfFilesProcessed
 
Constructor Summary
GetCDXRecordsBatchJob()
          Constructor.
 
Method Summary
 void finish(java.io.OutputStream os)
          Finish job.
 void initialize(java.io.OutputStream os)
          Initialize job.
 void processRecord(org.archive.io.arc.ARCRecord sar, java.io.OutputStream os)
          Process a single ARCRecord if the record contains cdx.
 
Methods inherited from class dk.netarkivet.common.utils.arc.ARCBatchJob
getExceptionArray, getFilter, handleException, noOfRecordsProcessed, processFile
 
Methods inherited from class dk.netarkivet.common.utils.batch.FileBatchJob
addException, addFinishException, addInitializeException, getBatchJobTimeout, getExceptions, getFilenamePattern, getFilesFailed, getNoOfFilesProcessed, maxExceptionsReached, postProcess, processOnlyFileNamed, processOnlyFilesMatching, processOnlyFilesMatching, processOnlyFilesNamed, setBatchJobTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetCDXRecordsBatchJob

public GetCDXRecordsBatchJob()
Constructor.

Method Detail

initialize

public void initialize(java.io.OutputStream os)
Initialize job. Does nothing

Specified by:
initialize in class ARCBatchJob
Parameters:
os - The output stream (unused in this implementation)

processRecord

public void processRecord(org.archive.io.arc.ARCRecord sar,
                          java.io.OutputStream os)
Process a single ARCRecord if the record contains cdx.

Specified by:
processRecord in class ARCBatchJob
Parameters:
sar - The record we want to process
os - The output stream to write the result to

finish

public void finish(java.io.OutputStream os)
Finish job. Does nothing

Specified by:
finish in class ARCBatchJob
Parameters:
os - The Outputstream (unused in this implementation)