dk.netarkivet.archive.arcrepository.distribute
Class StoreMessage

java.lang.Object
  extended by dk.netarkivet.common.distribute.NetarkivetMessage
      extended by dk.netarkivet.archive.distribute.ArchiveMessage
          extended by 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
StoreMessage(ChannelID replyTo, java.io.File arcfile)
          Construct StoreMessage.
 
Method Summary
 void accept(ArchiveMessageVisitor v)
          Should be implemented as a part of the visitor pattern.
 java.lang.String getArcfileName()
          Retrieve name of the stored file.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StoreMessage

public StoreMessage(ChannelID replyTo,
                    java.io.File arcfile)
Construct StoreMessage.

Parameters:
replyTo - Channel to reply back to
arcfile - The file to store
Method Detail

getArcfileName

public java.lang.String getArcfileName()
Retrieve name of the stored file.

Returns:
current value of arcfileName

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 class ArchiveMessage
Parameters:
v - A message visitor
See Also:
ArchiveMessageVisitor

toString

public java.lang.String toString()
Generate String representation of this object.

Overrides:
toString in class NetarkivetMessage
Returns:
String representation of this object