|
||||||||||
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.BatchReplyMessage
public class BatchReplyMessage
Message class used by the bit archive monitor to notify the ArcRepository of a completed batch job.
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
BatchReplyMessage(ChannelID to,
ChannelID replyTo,
java.lang.String originatingBatchMsgId,
int filesProcessed,
java.util.Collection<java.io.File> failedFiles,
RemoteFile resultFile)
Message to signal from BitarchiveMonitorServer that the batch job identified by originatingBatchMsgId is completed. |
Method Summary | |
---|---|
void |
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern. |
java.util.Collection<java.io.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. |
java.lang.String |
toString()
Retrieval of a string representing the instance. |
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 BatchReplyMessage(ChannelID to, ChannelID replyTo, java.lang.String originatingBatchMsgId, int filesProcessed, java.util.Collection<java.io.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 meaningfulMethod Detail |
---|
public int getNoOfFilesProcessed()
public java.util.Collection<java.io.File> getFilesFailed()
public RemoteFile getResultFile()
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- A message visitorArchiveMessageVisitor
public java.lang.String toString()
toString
in class NetarkivetMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |