public abstract class ArchiveBatchJob extends ArchiveBatchJobBase
FileBatchJob.ExceptionOccurrence
noOfRecordsProcessed
batchJobTimeout, exceptions, filesFailed, noOfFilesProcessed
Constructor and Description |
---|
ArchiveBatchJob() |
Modifier and Type | Method and Description |
---|---|
ArchiveBatchFilter |
getFilter()
Returns an ArchiveBatchFilter object which restricts the set of records in the archive on which this batch-job is
performed.
|
boolean |
processFile(File archiveFile,
OutputStream os)
Accepts only arc(.gz) and warc(.gz) files.
|
abstract void |
processRecord(ArchiveRecordBase record,
OutputStream os)
Exceptions should be handled with the handleException() method.
|
finish, getExceptionArray, handleException, handleOurException, initialize, noOfRecordsProcessed
addException, addFinishException, addInitializeException, getBatchJobTimeout, getExceptions, getFilenamePattern, getFilesFailed, getNoOfFilesProcessed, maxExceptionsReached, postProcess, processOnlyFileNamed, processOnlyFilesMatching, processOnlyFilesMatching, processOnlyFilesNamed, setBatchJobTimeout
public ArchiveBatchJob()
public abstract void processRecord(ArchiveRecordBase record, OutputStream os)
os
- The OutputStream to which output data is writtenrecord
- the object to be processed.public ArchiveBatchFilter getFilter()
public final boolean processFile(File archiveFile, OutputStream os) throws ArgumentNotValid
processFile
in class FileBatchJob
archiveFile
- The arc(.gz) or warc(.gz) file to be processed.os
- the OutputStream to which output is to be writtenArgumentNotValid
- if either argument is nullCopyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.