Class AdminDataMessage

  • All Implemented Interfaces:
    Serializable

    public class AdminDataMessage
    extends ArchiveMessage
    Class encapsulating a request to update AdminData. The message has two different types: changestorestate-type, and changechecksum-type. There is a constructor for each type.
    See Also:
    Serialized Form
    • Constructor Detail

      • AdminDataMessage

        public AdminDataMessage​(String theFileName,
                                String theReplicaId,
                                ReplicaStoreState newval)
        Constructor used when you change the BitarchiveStoreState.
        Parameters:
        theFileName - The filename you want to give a new BitarchiveStoreState.
        theReplicaId - The ID for the bitarchive where the file resides
        newval - The new BitarchiveStoreState
      • AdminDataMessage

        public AdminDataMessage​(String theFileName,
                                String theChecksum)
        Constructor used when you want to change the checksum for the given filename.
        Parameters:
        theFileName - the given filename
        theChecksum - the new checksum for the filename
    • Method Detail

      • getReplicaId

        public String getReplicaId()
        Method for retrieving the replica id from this message.
        Returns:
        Returns the replicaId.
      • getFileName

        public String getFileName()
        Method for retrieving the name of the file which are refered to in this message.
        Returns:
        Returns the fileName.
      • getChecksum

        public String getChecksum()
        Returns:
        Returns the fileName.
      • isChangeStoreState

        public boolean isChangeStoreState()
        Return the state of the changestorestate - flag.
        Returns:
        true, if this message is a changestorestate message
      • isChangeChecksum

        public boolean isChangeChecksum()
        Return the state of the changechecksum - flag.
        Returns:
        true, if this message is a changechecksum message
      • getNewvalue

        public ReplicaStoreState getNewvalue()
        Returns:
        Returns the newvalue.