Class GetAllFilenamesMessage
- java.lang.Object
-
- dk.netarkivet.common.distribute.NetarkivetMessage
-
- dk.netarkivet.archive.distribute.ArchiveMessage
-
- dk.netarkivet.archive.checksum.distribute.GetAllFilenamesMessage
-
- All Implemented Interfaces:
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
Constructors Constructor Description GetAllFilenamesMessage(ChannelID to, ChannelID replyTo, String repId)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ArchiveMessageVisitor v)
Accept this message.void
getData(File toFile)
Method for retrieving the resulting file.String
getReplicaId()
Method for retrieving the id for the replica where this message should be sent.void
setFile(File file)
Method for setting the resulting file.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
-
-
-
-
Method Detail
-
setFile
public void setFile(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(File toFile)
Method for retrieving the resulting file.- Parameters:
toFile
- The file for the remotely retrieved content.
-
getReplicaId
public String getReplicaId()
Method for retrieving the id for the replica where this message should be sent.- Returns:
- The id for the replica.
-
toString
public String toString()
Retrieval of a string representation of this instance.- Overrides:
toString
in classNetarkivetMessage
- Returns:
- A string representation of this instance.
-
accept
public void accept(ArchiveMessageVisitor v)
Accept this message.- Specified by:
accept
in classArchiveMessage
- Parameters:
v
- The message visitor accepting this message.- See Also:
ArchiveMessageVisitor
-
-