Package dk.netarkivet.archive.bitarchive
Class BitarchiveMonitor.BatchJobStatus
- java.lang.Object
-
- dk.netarkivet.archive.bitarchive.BitarchiveMonitor.BatchJobStatus
-
- Enclosing class:
- BitarchiveMonitor
public final class BitarchiveMonitor.BatchJobStatus extends Object
Class handling state and updates in batch job status.This class remembers information about the batchjob sent, and information from all bitarchive replies received. It also contains information about the original requester of the batchjob.
-
-
Field Summary
Fields Modifier and Type Field Description File
batchResultFile
A File with a concatenation of results from replies received so far.String
errorMessages
A string with a concatenation of errors.List<FileBatchJob.ExceptionOccurrence>
exceptions
A list of the exceptions that occurred during processing.Collection<File>
filesFailed
The accumulated list of files failed in replies received so far.Set<String>
missingRespondents
set containing the bitarchives that were alive when we sent the job, but haven't answered yet.int
noOfFilesProcessed
The accumulated number of files processed in replies received so far.String
originalRequestID
the ID of the original batch request.ChannelID
originalRequestReplyTo
The reply channel for the original request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendError(String errMsg)
Appends the given message to the current error message.
-
-
-
Field Detail
-
originalRequestID
public final String originalRequestID
the ID of the original batch request.
-
originalRequestReplyTo
public final ChannelID originalRequestReplyTo
The reply channel for the original request.
-
missingRespondents
public final Set<String> missingRespondents
set containing the bitarchives that were alive when we sent the job, but haven't answered yet.
-
noOfFilesProcessed
public int noOfFilesProcessed
The accumulated number of files processed in replies received so far.
-
filesFailed
public final Collection<File> filesFailed
The accumulated list of files failed in replies received so far.
-
errorMessages
public String errorMessages
A string with a concatenation of errors. This error message is null, if the job is successful.
-
batchResultFile
public final File batchResultFile
A File with a concatenation of results from replies received so far.
-
exceptions
public final List<FileBatchJob.ExceptionOccurrence> exceptions
A list of the exceptions that occurred during processing.
-
-
Method Detail
-
appendError
public void appendError(String errMsg)
Appends the given message to the current error message.- Parameters:
errMsg
- A message describing what went wrong.
-
-