public class BatchEndedMessage extends ArchiveMessage
replyOfId
Constructor and Description |
---|
BatchEndedMessage(ChannelID to,
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,
String baAppId,
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.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
String |
getBitarchiveID()
Returns id information for the bitarchive which generated this message.
|
List<FileBatchJob.ExceptionOccurrence> |
getExceptions()
Returns the list of the exceptions that occurred during processing.
|
Collection<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.
|
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(Collection<File> files)
Set the files that failed in batch job.
|
void |
setNoOfFilesProcessed(int number)
Set the number of files processed in batch job.
|
String |
toString()
Human readable version of this object.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk
public BatchEndedMessage(ChannelID to, String baAppId, String originatingBatchMsgId, RemoteFile rf) throws ArgumentNotValid
Holds status information: list of files processed and a list of ARC files (file names) on which the batch job failed.
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, String originatingBatchMsgId, BatchStatus status)
Holds status information: list of files processed and a list of ARC files (file names) on which the batch job failed.
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.public String getBitarchiveID()
public String getOriginatingBatchMsgID()
public int getNoOfFilesProcessed()
public Collection<File> getFilesFailed()
public void setNoOfFilesProcessed(int number)
number
- The number of processed filespublic void setFilesFailed(Collection<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 String toString()
toString
in class NetarkivetMessage
public List<FileBatchJob.ExceptionOccurrence> getExceptions()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.