|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.arcrepository.BatchStatus
public class BatchStatus
Class for transferring batch status information.
Constructor Summary | |
---|---|
BatchStatus(java.util.Collection<java.io.File> filesFailed,
int noOfFilesProcessed,
RemoteFile resultFile,
java.util.List<FileBatchJob.ExceptionOccurrence> exceptions)
Create a new BatchStatus object for a specific bitarchive. |
|
BatchStatus(java.lang.String bitArchiveAppId,
java.util.Collection<java.io.File> filesFailed,
int noOfFilesProcessed,
RemoteFile resultFile,
java.util.List<FileBatchJob.ExceptionOccurrence> exceptions)
Create a new BatchStatus object for a specific bitarchive. |
Method Summary | |
---|---|
void |
appendResults(java.io.OutputStream stream)
Append the results of a batch job into a stream. |
void |
copyResults(java.io.File targetFile)
Copy the results of a batch job into a local file. |
java.lang.String |
getBitArchiveAppId()
Get the appId (internal string) for the bitarchive that these are the results from. |
java.util.List<FileBatchJob.ExceptionOccurrence> |
getExceptions()
Get the list of exceptions that happened during the batch job. |
java.util.Collection<java.io.File> |
getFilesFailed()
Get the File objects for the files that failed. |
int |
getNoOfFilesProcessed()
Get the number of files processed by the batch job. |
RemoteFile |
getResultFile()
Get the file containing results from a batch job. |
boolean |
hasResultFile()
Returns true if this object has a result file. |
java.lang.String |
toString()
Returns a human-readable description of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BatchStatus(java.lang.String bitArchiveAppId, java.util.Collection<java.io.File> filesFailed, int noOfFilesProcessed, RemoteFile resultFile, java.util.List<FileBatchJob.ExceptionOccurrence> exceptions)
bitArchiveAppId
- The application ID identifying the bitarchive, that run this
batch job.filesFailed
- A list of files that the batch job could not process.noOfFilesProcessed
- The total number of files processedresultFile
- A file containing the result of the batch jobexceptions
- A list of exceptions caught during the execution of
the batchJobpublic BatchStatus(java.util.Collection<java.io.File> filesFailed, int noOfFilesProcessed, RemoteFile resultFile, java.util.List<FileBatchJob.ExceptionOccurrence> exceptions)
filesFailed
- A list of files that the batch job could not processnoOfFilesProcessed
- The total number of files processedresultFile
- A file containing the result of the batch jobexceptions
- A list of exceptions caught during the execution of
the batchJobMethod Detail |
---|
public int getNoOfFilesProcessed()
public java.util.Collection<java.io.File> getFilesFailed()
public java.lang.String getBitArchiveAppId()
public RemoteFile getResultFile()
public java.util.List<FileBatchJob.ExceptionOccurrence> getExceptions()
public void copyResults(java.io.File targetFile) throws IllegalState
targetFile
- File to copy the results into. This file will be
overridden if hasResultFile() returns true;
IllegalState
- If the results have already been copied, or there
are no results to copy due to errors.public void appendResults(java.io.OutputStream stream) throws IllegalState
stream
- A stream to append results to.
IllegalState
- If the results have already been copied, or there
are no results to copy due to errors.public boolean hasResultFile()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |