dk.netarkivet.archive.checksum.distribute
Class GetAllFilenamesMessage

java.lang.Object
  extended by dk.netarkivet.common.distribute.NetarkivetMessage
      extended by dk.netarkivet.archive.distribute.ArchiveMessage
          extended by dk.netarkivet.archive.checksum.distribute.GetAllFilenamesMessage
All Implemented Interfaces:
java.io.Serializable

public class GetAllFilenamesMessage
extends ArchiveMessage

The GetAllFilenamesMessage is sent to retrieve all the filenames in a specific replica. The result is a file in the same format as a FilelistJob.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class dk.netarkivet.common.distribute.NetarkivetMessage
replyOfId
 
Constructor Summary
GetAllFilenamesMessage(ChannelID to, ChannelID replyTo, java.lang.String repId)
          Constructor.
 
Method Summary
 void accept(ArchiveMessageVisitor v)
          Accept this message.
 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()
          Retrieval of a string representation of this instance.
 
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

GetAllFilenamesMessage

public GetAllFilenamesMessage(ChannelID to,
                              ChannelID replyTo,
                              java.lang.String repId)
Constructor.

Parameters:
to - The channel the message is sent to.
replyTo - The channel the reply is sent to.
repId - The id of the replica.
Method Detail

setFile

public void setFile(java.io.File file)
Method for setting the resulting file. This file will be retrieved from the caller of this message.

Parameters:
file - The file with the checksum message.

getData

public void getData(java.io.File toFile)
Method for retrieving the resulting file.

Parameters:
toFile - The file for the remotely retrieved content.

getReplicaId

public java.lang.String getReplicaId()
Method for retrieving the id for the replica where this message should be sent.

Returns:
The id for the replica.

toString

public java.lang.String toString()
Retrieval of a string representation of this instance.

Overrides:
toString in class NetarkivetMessage
Returns:
A string representation of this instance.

accept

public void accept(ArchiveMessageVisitor v)
Accept this message.

Specified by:
accept in class ArchiveMessage
Parameters:
v - The message visitor accepting this message.
See Also:
ArchiveMessageVisitor