|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.common.distribute.NetarkivetMessage
dk.netarkivet.archive.distribute.ArchiveMessage
dk.netarkivet.archive.checksum.distribute.CorrectMessage
public class CorrectMessage
The message to correct a bad entry in an archive.
Field Summary |
---|
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage |
---|
replyOfId |
Constructor Summary | |
---|---|
CorrectMessage(ChannelID to,
ChannelID replyTo,
java.lang.String badChecksum,
RemoteFile file)
Constructor. |
Method Summary | |
---|---|
void |
accept(ArchiveMessageVisitor v)
Accept this message. |
java.lang.String |
getArcfileName()
Retrieve name of the uploaded file. |
java.lang.String |
getChecksum()
Method for retrieving the 'bad' checksum which should correspond to the checksum of the current entry on this file in the archive. |
void |
getData(java.io.File toFile)
Writes the the content of the retrieved file into a local 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 CorrectMessage(ChannelID to, ChannelID replyTo, java.lang.String badChecksum, RemoteFile file)
to
- Where the message should be sent.replyTo
- Who is sending this message.badChecksum
- The checksum of the 'bad' entry.file
- The file to replace the 'bad' entry.Method Detail |
---|
public java.lang.String getArcfileName()
public void getData(java.io.File toFile)
toFile
- where to write the content
IOFailure
- on error reading the remote file
or writing the local filepublic java.lang.String getChecksum()
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 |