Class StoreMessage
- java.lang.Object
-
- dk.netarkivet.common.distribute.NetarkivetMessage
-
- dk.netarkivet.archive.distribute.ArchiveMessage
-
- dk.netarkivet.archive.arcrepository.distribute.StoreMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class StoreMessage extends ArchiveMessage
Messages requesting store of file. This message is sent to the arc repository which distributes the file to the known bitarchives, and checks the result, and then responds to the sender.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
-
-
Constructor Summary
Constructors Constructor Description StoreMessage(ChannelID replyTo, java.io.File arcfile)
Construct StoreMessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern.java.lang.String
getArcfileName()
Retrieve name of the stored file.java.lang.String
getPrecomputedChecksum()
RemoteFile
getRemoteFile()
Get method for field theRemoteFile.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
-
-
-
-
Constructor Detail
-
StoreMessage
public StoreMessage(ChannelID replyTo, java.io.File arcfile)
Construct StoreMessage.- Parameters:
replyTo
- Channel to reply back toarcfile
- The file to store
-
-
Method Detail
-
getArcfileName
public java.lang.String getArcfileName()
Retrieve name of the stored file.- Returns:
- current value of arcfileName
-
getPrecomputedChecksum
public java.lang.String getPrecomputedChecksum()
-
getRemoteFile
public RemoteFile getRemoteFile()
Get method for field theRemoteFile.- Returns:
- Current value of theRemoteFile
-
accept
public void accept(ArchiveMessageVisitor v)
Should be implemented as a part of the visitor pattern. fx.: public void accept(ArchiveMessageVisitor v) { v.visit(this); }- Specified by:
accept
in classArchiveMessage
- Parameters:
v
- A message visitor- See Also:
ArchiveMessageVisitor
-
toString
public java.lang.String toString()
Generate String representation of this object.- Overrides:
toString
in classNetarkivetMessage
- Returns:
- String representation of this object
-
-