dk.netarkivet.archive.bitarchive
Class BitarchiveMonitor.BatchJobStatus

java.lang.Object
  extended by dk.netarkivet.archive.bitarchive.BitarchiveMonitor.BatchJobStatus
Enclosing class:
BitarchiveMonitor

public final class BitarchiveMonitor.BatchJobStatus
extends java.lang.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
 java.io.File batchResultFile
          A File with a concatenation of results from replies received so far.
 java.lang.String errorMessages
          A string with a concatenation of errors.
 java.util.List<FileBatchJob.ExceptionOccurrence> exceptions
          A list of the exceptions that occurred during processing.
 java.util.Collection<java.io.File> filesFailed
          The accumulated list of files failed in replies received so far.
 java.util.Set<java.lang.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.
 java.lang.String originalRequestID
          the ID of the original batch request.
 ChannelID originalRequestReplyTo
          The reply channel for the original request.
 
Method Summary
 void appendError(java.lang.String errMsg)
          Appends the given message to the current error message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originalRequestID

public final java.lang.String originalRequestID
the ID of the original batch request.


originalRequestReplyTo

public final ChannelID originalRequestReplyTo
The reply channel for the original request.


missingRespondents

public final java.util.Set<java.lang.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 java.util.Collection<java.io.File> filesFailed
The accumulated list of files failed in replies received so far.


errorMessages

public java.lang.String errorMessages
A string with a concatenation of errors. This error message is null, if the job is successful.


batchResultFile

public final java.io.File batchResultFile
A File with a concatenation of results from replies received so far.


exceptions

public final java.util.List<FileBatchJob.ExceptionOccurrence> exceptions
A list of the exceptions that occurred during processing.

Method Detail

appendError

public void appendError(java.lang.String errMsg)
Appends the given message to the current error message.

Parameters:
errMsg - A message describing what went wrong.