public class HarvestedUrlsForDomainBatchJob extends ArchiveBatchJob
FileBatchJob.processOnlyFilesMatching(String)
construct.FileBatchJob.ExceptionOccurrence
noOfRecordsProcessed
batchJobTimeout, exceptions, filesFailed, noOfFilesProcessed
Constructor and Description |
---|
HarvestedUrlsForDomainBatchJob(String domain)
Initialise the batch job.
|
Modifier and Type | Method and Description |
---|---|
void |
finish(OutputStream os)
Does nothing, no finishing is needed.
|
ArchiveBatchFilter |
getFilter()
Returns an ArchiveBatchFilter object which restricts the set of records in the archive on which this batch-job is
performed.
|
void |
initialize(OutputStream os)
Does nothing, no initialisation is needed.
|
void |
processRecord(ArchiveRecordBase record,
OutputStream os)
Process a record on crawl log concerning the given domain to result.
|
String |
toString()
Humanly readable representation of this instance.
|
processFile
getExceptionArray, handleException, handleOurException, noOfRecordsProcessed
addException, addFinishException, addInitializeException, getBatchJobTimeout, getExceptions, getFilenamePattern, getFilesFailed, getNoOfFilesProcessed, maxExceptionsReached, postProcess, processOnlyFileNamed, processOnlyFilesMatching, processOnlyFilesMatching, processOnlyFilesNamed, setBatchJobTimeout
public HarvestedUrlsForDomainBatchJob(String domain)
domain
- The domain to get crawl.log lines for.public void initialize(OutputStream os)
initialize
in class ArchiveBatchJobBase
os
- Not used.public ArchiveBatchFilter getFilter()
ArchiveBatchJob
getFilter
in class ArchiveBatchJob
public void processRecord(ArchiveRecordBase record, OutputStream os)
processRecord
in class ArchiveBatchJob
record
- The record to process.os
- The output stream for the result.ArgumentNotValid
- on null parametersIOFailure
- on trouble processing the record.public void finish(OutputStream os)
finish
in class ArchiveBatchJobBase
os
- Not used.Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.