dk.netarkivet.common.utils.batch
Class DatedFileListJob

java.lang.Object
  extended by dk.netarkivet.common.utils.batch.FileBatchJob
      extended by dk.netarkivet.common.utils.batch.FileListJob
          extended by dk.netarkivet.common.utils.batch.DatedFileListJob
All Implemented Interfaces:
java.io.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.FileListJob
log
 
Fields inherited from class dk.netarkivet.common.utils.batch.FileBatchJob
batchJobTimeout, exceptions, filesFailed, noOfFilesProcessed
 
Constructor Summary
DatedFileListJob(java.util.Date since)
          Constructor for this class.
 
Method Summary
 boolean processFile(java.io.File file, java.io.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatedFileListJob

public DatedFileListJob(java.util.Date since)
Constructor for this class.

Parameters:
since - The date after which we require files to be listed.
Method Detail

processFile

public boolean processFile(java.io.File file,
                           java.io.OutputStream os)
Writes the name of the arcfile to the OutputStream if its lastModified date is more recent than "since".

Overrides:
processFile in class FileListJob
Parameters:
file - an arcfile
os - 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.