Class ReplicaFileInfo


  • public class ReplicaFileInfo
    extends Object
    This is a container for the ReplicaFileInfo table in the bitpreservation database.
    • Constructor Detail

      • ReplicaFileInfo

        public ReplicaFileInfo​(long gId,
                               String rId,
                               long fId,
                               long sId,
                               String cs,
                               int us,
                               int fs,
                               int css,
                               Date fDate,
                               Date cDate)
                        throws ArgumentNotValid
        Constructor.
        Parameters:
        gId - The guid.
        rId - The replicaId.
        fId - The fileId.
        sId - the segmentId.
        cs - The checksum.
        us - The uploadstatus.
        fs - The fileliststatus.
        css - The checksumstatus.
        fDate - The date for the last filelist update.
        cDate - The date for the last checksum update.
        Throws:
        ArgumentNotValid - If gId or fId is negative, the rId is either null or the empty string. The other variables are not validated, since they are allowed to be null (e.g. the dates before they are updated).
    • Method Detail

      • toString

        public String toString()
        Retrieves this object as as a string. Contains all the variables.
        Overrides:
        toString in class Object
        Returns:
        A string representing this object.
      • getGuid

        public long getGuid()
        Retrieves the guid.
        Returns:
        The guid.
      • getReplicaId

        public String getReplicaId()
        Retrieves the replicaId.
        Returns:
        The replicaId.
      • getFileId

        public long getFileId()
        Retrieves the fileId.
        Returns:
        The fileId.
      • getSegmentId

        public long getSegmentId()
        Retrieves the segmentId.
        Returns:
        The segmentId.
      • getChecksum

        public String getChecksum()
        Retrieves the checksum.
        Returns:
        The checksum.
      • getUploadState

        public ReplicaStoreState getUploadState()
        Retrieves the uploadState.
        Returns:
        The uploadState.
      • getFileListState

        public FileListStatus getFileListState()
        Retrieves the filelistStatus.
        Returns:
        The filelistStatus.
      • getChecksumStatus

        public ChecksumStatus getChecksumStatus()
        Retrieves the checksumStatus.
        Returns:
        The checksumStatus.
      • getFileListCheckDateTime

        public Date getFileListCheckDateTime()
        Retrieves the filelistCheckdatetime.
        Returns:
        The filelistCheckdatetime.
      • getChecksumCheckdatetime

        public Date getChecksumCheckdatetime()
        Retrieves the checksumCheckDatetime.
        Returns:
        The checksumCheckDateTime.