Package dk.netarkivet.common.utils.batch
Class FileListJob
- java.lang.Object
-
- dk.netarkivet.common.utils.batch.FileBatchJob
-
- dk.netarkivet.common.utils.batch.FileListJob
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DatedFileListJob
public class FileListJob extends FileBatchJob
A batch job which returns a list of all files in the bitarchive in which it runs.- 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 FileListJob()
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish(OutputStream os)
Does nothing.void
initialize(OutputStream os)
Initializes fields in this class.boolean
processFile(File file, OutputStream os)
Writes the name of the arcfile to the OutputStream.String
toString()
Return a human-readable representation of a FileListJob.-
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
-
-
-
-
Method Detail
-
initialize
public void initialize(OutputStream os)
Initializes fields in this class.- Specified by:
initialize
in classFileBatchJob
- Parameters:
os
- the OutputStream to which data is to be written
-
processFile
public boolean processFile(File file, OutputStream os)
Writes the name of the arcfile to the OutputStream.- Specified by:
processFile
in classFileBatchJob
- Parameters:
file
- an arcfileos
- the OutputStream to which data is to be written- Returns:
- false If listing of this arcfile fails; otherwise true
-
finish
public void finish(OutputStream os)
Does nothing.- Specified by:
finish
in classFileBatchJob
- Parameters:
os
- the OutputStream to which data is to be written
-
-