|
||||||||||
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.GetAllChecksumsMessage
public class GetAllChecksumsMessage
The GetChecksumMessage has the purpose to retrieve the checksum of all the files. The output is in the form of a file corresponding to the reply file of a ChecksumJob. This is checksum replica alternative to sending a ChecksumBatchJob.
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
GetAllChecksumsMessage(ChannelID to,
ChannelID replyTo,
java.lang.String repId)
Constructor. |
Method Summary | |
---|---|
void |
accept(ArchiveMessageVisitor v)
Accept visitation. |
void |
getData(java.io.File toFile)
Method for retrieving the resulting file. |
java.lang.String |
getReplicaId()
Method for retrieving the id for the replica where this message should be sent. |
void |
setFile(java.io.File file)
Method for setting the resulting file. |
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 GetAllChecksumsMessage(ChannelID to, ChannelID replyTo, java.lang.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.Method Detail |
---|
public void setFile(java.io.File file) throws ArgumentNotValid
file
- The file with the checksum message.
ArgumentNotValid
- If file is null.public void getData(java.io.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 java.lang.String getReplicaId()
public java.lang.String toString()
toString
in class NetarkivetMessage
public void accept(ArchiveMessageVisitor v)
accept
in class ArchiveMessage
v
- The ArchiveMessageVisitor which accepts this message.ArchiveMessageVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |