public class GetChecksumMessage extends ArchiveMessage
This is checksum replica alternative to sending a ChecksumBatchJob, with a filename limitation.
replyOfId
Constructor and Description |
---|
GetChecksumMessage(ChannelID to,
ChannelID replyTo,
String filename,
String repId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ArchiveMessageVisitor v)
Accept this message.
|
String |
getArcfileName()
Retrieve name of the uploaded file.
|
String |
getChecksum()
Retrieves the checksum.
|
boolean |
getIsReply()
Retrieves the variable for telling whether this it currently is a reply to this message or not.
|
String |
getReplicaId()
Retrieves the replica id.
|
void |
setChecksum(String cs)
Method for returning the result of the checksum.
|
void |
setIsReply()
Set that this is a reply.
|
String |
toString()
Generate String representation of this object.
|
getErrMsg, getID, getReplyOfId, getReplyTo, getTo, hasBeenSent, isOk, setNotOk, setNotOk
public GetChecksumMessage(ChannelID to, ChannelID replyTo, String filename, String repId)
to
- Where this message should be sent.replyTo
- Where the reply for this message should be sent.filename
- The name of the file.repId
- The id of the replica where the message is to be sent.public String getArcfileName()
public String getReplicaId()
public String getChecksum()
public boolean getIsReply()
public void setIsReply()
public void setChecksum(String cs) throws ArgumentNotValid
cs
- The checksum.ArgumentNotValid
- If the checksum which is attempted to be set is either null or an empty string.public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- The message visitor accepting this message.ArchiveMessageVisitor
public String toString()
toString
in class NetarkivetMessage
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.