public class BatchReplyMessage extends ArchiveMessage
replyOfId
Constructor and Description |
---|
BatchReplyMessage(ChannelID to,
ChannelID replyTo,
String originatingBatchMsgId,
int filesProcessed,
Collection<File> failedFiles,
RemoteFile resultFile)
Message to signal from BitarchiveMonitorServer that the batch job identified by originatingBatchMsgId is
completed.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern.
|
Collection<File> |
getFilesFailed()
Retrieves the collection of files, where this batchjob has failed.
|
int |
getNoOfFilesProcessed()
Returns the total number of files processed by this batch job.
|
RemoteFile |
getResultFile()
Returns the RemoteFile that contains the output of this batchjob.
|
String |
toString()
Retrieval of a string representing the instance.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk
public BatchReplyMessage(ChannelID to, ChannelID replyTo, String originatingBatchMsgId, int filesProcessed, Collection<File> failedFiles, RemoteFile resultFile) throws ArgumentNotValid
to
- The queue to which this message is to be sent. This will normally be the ARCREPOS queuereplyTo
- The queue that should receive replies.originatingBatchMsgId
- The Id of the BathMessage which gave rise to this replyfilesProcessed
- The total number of file processed in this batch jobfailedFiles
- A Collection of strings with the names of files on which this batch job failed. May be null or
empty for no errors.resultFile
- The RemoteFile containing the output from the batch job, or null if an error occurred that
prevented the creation of the file.ArgumentNotValid
- if the input parameters are not meaningfulpublic int getNoOfFilesProcessed()
public Collection<File> getFilesFailed()
public RemoteFile getResultFile()
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
public String toString()
toString
in class NetarkivetMessage
Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.