|
||||||||||
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.checksum.distribute.GetChecksumMessage
public class GetChecksumMessage
The GetChecksumMessage has the purpose to retrieve the checksum of a specific file. This is checksum replica alternative to sending a ChecksumBatchJob, with a filename limitation.
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
GetChecksumMessage(ChannelID to,
ChannelID replyTo,
java.lang.String filename,
java.lang.String repId)
Constructor. |
Method Summary | |
---|---|
void |
accept(ArchiveMessageVisitor v)
Accept this message. |
java.lang.String |
getArcfileName()
Retrieve name of the uploaded file. |
java.lang.String |
getChecksum()
Retrieves the checksum. |
boolean |
getIsReply()
Retrieves the variable for telling whether this it currently is a reply to this message or not. |
java.lang.String |
getReplicaId()
Retrieves the replica id. |
void |
setChecksum(java.lang.String cs)
Method for returning the result of the checksum. |
void |
setIsReply()
Set that this is a reply. |
java.lang.String |
toString()
Generate String representation of this object. |
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 GetChecksumMessage(ChannelID to, ChannelID replyTo, java.lang.String filename, java.lang.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.Method Detail |
---|
public java.lang.String getArcfileName()
public java.lang.String getReplicaId()
public java.lang.String getChecksum()
public boolean getIsReply()
public void setIsReply()
public void setChecksum(java.lang.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 java.lang.String toString()
toString
in class NetarkivetMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |