Class GetMessage

    • Constructor Detail

      • GetMessage

        public GetMessage​(ChannelID to,
                          ChannelID replyTo,
                          String arcfile,
                          long index)
        Constructor.
        Parameters:
        to - Where the message should be sent.
        replyTo - where the reply of this message should be sent.
        arcfile - The name of the file to retrieve a arc-record from.
        index - The offset of the arc-file.
    • Method Detail

      • getArcFile

        public String getArcFile()
        Get name of the arc file.
        Returns:
        file name
      • getIndex

        public long getIndex()
        Index of the record to retrieve.
        Returns:
        offset
      • setRecord

        public void setRecord​(BitarchiveRecord rec)
        Register retrieved record.
        Parameters:
        rec - Record retrieved from arcfile at offset index
      • getRecord

        public BitarchiveRecord getRecord()
        Get the data retrieved from the arcfile.
        Returns:
        Record from arcfile
      • toString

        public String toString()
        Retrieval of a string representation of this instance.
        Overrides:
        toString in class NetarkivetMessage
        Returns:
        The string representation of this instance.