Package dk.netarkivet.common.utils.batch
Class DatedFileListJob
- java.lang.Object
-
- dk.netarkivet.common.utils.batch.FileBatchJob
-
- dk.netarkivet.common.utils.batch.FileListJob
-
- dk.netarkivet.common.utils.batch.DatedFileListJob
-
- All Implemented Interfaces:
Serializable
public class DatedFileListJob extends FileListJob
Job which returns the names of all files in the archive modified after a specific date.- 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.batch.FileBatchJob
batchJobTimeout, exceptions, filesFailed, noOfFilesProcessed
-
-
Constructor Summary
Constructors Constructor Description DatedFileListJob(Date since)
Constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
processFile(File file, OutputStream os)
Writes the name of the arcfile to the OutputStream if its lastModified date is more recent than "since".-
Methods inherited from class dk.netarkivet.common.utils.batch.FileListJob
finish, initialize, toString
-
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
-
DatedFileListJob
public DatedFileListJob(Date since)
Constructor for this class.- Parameters:
since
- The date after which we require files to be listed.
-
-
Method Detail
-
processFile
public boolean processFile(File file, OutputStream os)
Writes the name of the arcfile to the OutputStream if its lastModified date is more recent than "since".- Overrides:
processFile
in classFileListJob
- Parameters:
file
- an arcfileos
- the OutputStream to which data is to be written- Returns:
- false If listing of this arcfile fails because of an error; true if the name is listed or if it is not listed because the file is too old.
-
-