public class GetMetadataArchiveBatchJob extends ArchiveBatchJob
FileBatchJob.ExceptionOccurrence
noOfRecordsProcessed
batchJobTimeout, exceptions, filesFailed, noOfFilesProcessed
Constructor and Description |
---|
GetMetadataArchiveBatchJob(Pattern urlMatcher,
Pattern mimeMatcher)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
finish(OutputStream os)
Method for post-processing the data.
|
void |
initialize(OutputStream os)
Initialize method.
|
void |
processRecord(ArchiveRecordBase record,
OutputStream os)
The method for processing the arc-records.
|
String |
toString()
Humanly readable description of this instance.
|
getFilter, processFile
getExceptionArray, handleException, handleOurException, noOfRecordsProcessed
addException, addFinishException, addInitializeException, getBatchJobTimeout, getExceptions, getFilenamePattern, getFilesFailed, getNoOfFilesProcessed, maxExceptionsReached, postProcess, processOnlyFileNamed, processOnlyFilesMatching, processOnlyFilesMatching, processOnlyFilesNamed, setBatchJobTimeout
public GetMetadataArchiveBatchJob(Pattern urlMatcher, Pattern mimeMatcher)
urlMatcher
- A pattern for matching URLs of the desired entries. If null, a .* pattern will be used.mimeMatcher
- A pattern for matching mime-types of the desired entries. If null, a .* pattern will be used.
The batchJobTimeout is set to one day.
public void initialize(OutputStream os)
initialize
in class ArchiveBatchJobBase
os
- The output stream to print any pre-processing data.public void processRecord(ArchiveRecordBase record, OutputStream os) throws IOFailure
processRecord
in class ArchiveBatchJob
record
- The arc-record to process.os
- The output stream to write the results of the processing.IOFailure
- In an IOException is caught during handling of the arc record.public void finish(OutputStream os)
finish
in class ArchiveBatchJobBase
os
- The output stream to write the results of the post-processing data.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.