Class 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
    • Constructor Detail

      • GetAllFilenamesMessage

        public GetAllFilenamesMessage​(ChannelID to,
                                      ChannelID replyTo,
                                      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​(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 class NetarkivetMessage
        Returns:
        A string representation of this instance.