public class GetAllChecksumsMessage extends ArchiveMessage
This is checksum replica alternative to sending a ChecksumBatchJob.
replyOfId
Constructor and Description |
---|
GetAllChecksumsMessage(ChannelID to,
ChannelID replyTo,
String repId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ArchiveMessageVisitor v)
Accept visitation.
|
void |
getData(File toFile)
Method for retrieving the resulting file.
|
String |
getReplicaId()
Method for retrieving the id for the replica where this message should be sent.
|
void |
setFile(File file)
Method for setting the resulting file.
|
String |
toString()
Generate String representation of this object.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk
public GetAllChecksumsMessage(ChannelID to, ChannelID replyTo, String repId)
to
- Where this message is headed.replyTo
- Where the reply on this message is sent.repId
- The replica where the job involved in this message is to be performed.public void setFile(File file) throws ArgumentNotValid
TODO cleanup if remoteFile already has been set.
file
- The file with the checksum message.ArgumentNotValid
- If file is null.public void getData(File toFile) throws IOFailure, ArgumentNotValid
toFile
- The file for the remotely retrieved content.IOFailure
- If the data in the remoteFile already has be retrieved.ArgumentNotValid
- If toFile is null.public String getReplicaId()
public String toString()
toString
in class NetarkivetMessage
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- The ArchiveMessageVisitor which accepts this message.ArchiveMessageVisitor
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.