dk.netarkivet.archive.bitarchive
Class BitarchiveMonitor.BatchJobStatus

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

public 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 concatention of results from replies received so far.
 java.lang.String errMsg
          A string with a concatention of errors.
 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 live 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 live 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.


errMsg

public java.lang.String errMsg
A string with a concatention of errors. This error message is null, if the job is succesful.


batchResultFile

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

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.