Class GetMetadataArchiveBatchJob
- java.lang.Object
-
- dk.netarkivet.common.utils.batch.FileBatchJob
-
- dk.netarkivet.common.utils.archive.ArchiveBatchJobBase
-
- dk.netarkivet.common.utils.archive.ArchiveBatchJob
-
- dk.netarkivet.common.utils.archive.GetMetadataArchiveBatchJob
-
- All Implemented Interfaces:
Serializable
public class GetMetadataArchiveBatchJob extends ArchiveBatchJob
A batch job that extracts metadata.- 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.archive.ArchiveBatchJobBase
noOfRecordsProcessed
-
Fields inherited from class dk.netarkivet.common.utils.batch.FileBatchJob
batchJobTimeout, exceptions, filesFailed, noOfFilesProcessed
-
-
Constructor Summary
Constructors Constructor Description GetMetadataArchiveBatchJob(Pattern urlMatcher, Pattern mimeMatcher)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class dk.netarkivet.common.utils.archive.ArchiveBatchJob
getFilter, processFile
-
Methods inherited from class dk.netarkivet.common.utils.archive.ArchiveBatchJobBase
getExceptionArray, handleException, handleOurException, noOfRecordsProcessed
-
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
-
-
-
-
Constructor Detail
-
GetMetadataArchiveBatchJob
public GetMetadataArchiveBatchJob(Pattern urlMatcher, Pattern mimeMatcher)
Constructor.- Parameters:
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.
-
-
Method Detail
-
initialize
public void initialize(OutputStream os)
Initialize method. Run before the arc-records are being processed. Currently does nothing.- Specified by:
initialize
in classArchiveBatchJobBase
- Parameters:
os
- The output stream to print any pre-processing data.
-
processRecord
public void processRecord(ArchiveRecordBase record, OutputStream os) throws IOFailure
The method for processing the arc-records.- Specified by:
processRecord
in classArchiveBatchJob
- Parameters:
record
- The arc-record to process.os
- The output stream to write the results of the processing.- Throws:
IOFailure
- If an IOException is caught during handling of the arc record.
-
finish
public void finish(OutputStream os)
Method for post-processing the data. Currently does nothing.- Specified by:
finish
in classArchiveBatchJobBase
- Parameters:
os
- The output stream to write the results of the post-processing data.
-
-