|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.NetarkivetMessage dk.netarkivet.archive.distribute.ArchiveMessage dk.netarkivet.archive.bitarchive.distribute.BatchEndedMessage
public class BatchEndedMessage
An instance of this class is sent by a bitarchive machine (Bitarchive class) to a BitarchiveMonitorServer to indicate that that single machine has finished processing a batch job.
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
BatchEndedMessage(ChannelID to,
java.lang.String originatingBatchMsgId,
BatchStatus status)
Message to signal from a BitarchiveServer to the BitarchiveMonitorServer that the Bit Archive Application identified by BA_ApplicationId has completed its part of the batch job. |
|
BatchEndedMessage(ChannelID to,
java.lang.String baAppId,
java.lang.String originatingBatchMsgId,
RemoteFile rf)
Message to signal from a BitarchiveServer to the BitarchiveMonitorServer that the Bit Archive Application identified by BA_ApplicationId has completed its part of the batch job. |
Method Summary | |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern. |
java.lang.String |
getBitarchiveID()
Returns id information for the bitarchive which generated this message. |
java.util.List<FileBatchJob.ExceptionOccurrence> |
getExceptions()
Returns the list of the exceptions that occurred during processing. |
java.util.Collection<java.io.File> |
getFilesFailed()
Returns a collection of the names of files on which this batch job. |
int |
getNoOfFilesProcessed()
Returns the number of files processed by this batch job on this machine. |
java.lang.String |
getOriginatingBatchMsgID()
Returns the Id of the BatchMessage which originated this message. |
RemoteFile |
getRemoteFile()
Returns the remote file object containing the output of this job. |
void |
setFilesFailed(java.util.Collection<java.io.File> files)
Set the files that failed in batch job. |
void |
setNoOfFilesProcessed(int number)
Set the number of files processed in batch job. |
java.lang.String |
toString()
Human readable version of this object. |
Methods inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BatchEndedMessage(ChannelID to, java.lang.String baAppId, java.lang.String originatingBatchMsgId, RemoteFile rf) throws ArgumentNotValid
to
- the channel to which this message is to be sent (must be a
BAMON channel)baAppId
- Identifier for the machine sending this message,
usually containing the IP address and http port numberoriginatingBatchMsgId
- the Id field from the original batch messagerf
- he remote file reference containing the output of the batch
job (may be null if no output is generated).
ArgumentNotValid
- If the BA_ApplicationId or the
originatingBatchMsgId are null or empty, or if the channel 'to' is null.public BatchEndedMessage(ChannelID to, java.lang.String originatingBatchMsgId, BatchStatus status)
to
- the channel to which this message is to be sent (must be a
BAMON channel)originatingBatchMsgId
- the Id field from the original batch messagestatus
- The object containing status info.Method Detail |
---|
public java.lang.String getBitarchiveID()
public java.lang.String getOriginatingBatchMsgID()
public int getNoOfFilesProcessed()
public java.util.Collection<java.io.File> getFilesFailed()
public void setNoOfFilesProcessed(int number)
number
- The number of processed filespublic void setFilesFailed(java.util.Collection<java.io.File> files)
files
- The collection of files that failedpublic void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
public RemoteFile getRemoteFile()
public java.lang.String toString()
toString
in class NetarkivetMessage
public java.util.List<FileBatchJob.ExceptionOccurrence> getExceptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |