Class ReplicaFileInfo
- java.lang.Object
-
- dk.netarkivet.archive.arcrepositoryadmin.ReplicaFileInfo
-
public class ReplicaFileInfo extends Object
This is a container for the ReplicaFileInfo table in the bitpreservation database.
-
-
Constructor Summary
Constructors Constructor Description ReplicaFileInfo(long gId, String rId, long fId, long sId, String cs, int us, int fs, int css, Date fDate, Date cDate)
Constructor.ReplicaFileInfo(ResultSet res)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChecksum()
Retrieves the checksum.Date
getChecksumCheckdatetime()
Retrieves the checksumCheckDatetime.ChecksumStatus
getChecksumStatus()
Retrieves the checksumStatus.long
getFileId()
Retrieves the fileId.Date
getFileListCheckDateTime()
Retrieves the filelistCheckdatetime.FileListStatus
getFileListState()
Retrieves the filelistStatus.long
getGuid()
Retrieves the guid.String
getReplicaId()
Retrieves the replicaId.long
getSegmentId()
Retrieves the segmentId.ReplicaStoreState
getUploadState()
Retrieves the uploadState.String
toString()
Retrieves this object as as a string.
-
-
-
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).
-
ReplicaFileInfo
public ReplicaFileInfo(ResultSet res) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
toString
public String toString()
Retrieves this object as as a string. Contains all the variables.
-
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.
-
-