dk.netarkivet.archive.arcrepositoryadmin
Class ReplicaFileInfo

java.lang.Object
  extended by dk.netarkivet.archive.arcrepositoryadmin.ReplicaFileInfo

public class ReplicaFileInfo
extends java.lang.Object

This is a container for the ReplicaFileInfo table in the bitpreservation database.


Constructor Summary
ReplicaFileInfo(long gId, java.lang.String rId, long fId, long sId, java.lang.String cs, int us, int fs, int css, java.sql.Date fDate, java.sql.Date cDate)
          Constructor.
ReplicaFileInfo(java.sql.ResultSet res)
           
 
Method Summary
 java.lang.String getChecksum()
          Retrieves the checksum.
 java.sql.Date getChecksumCheckdatetime()
          Retrieves the checksumCheckDatetime.
 ChecksumStatus getChecksumStatus()
          Retrieves the checksumStatus.
 long getFileId()
          Retrieves the fileId.
 java.sql.Date getFileListCheckDateTime()
          Retrieves the filelistCheckdatetime.
 FileListStatus getFileListState()
          Retrieves the filelistStatus.
 long getGuid()
          Retrieves the guid.
 java.lang.String getReplicaId()
          Retrieves the replicaId.
 long getSegmentId()
          Retrieves the segmentId.
 ReplicaStoreState getUploadState()
          Retrieves the uploadState.
 java.lang.String toString()
          Retrieves this object as as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplicaFileInfo

public ReplicaFileInfo(long gId,
                       java.lang.String rId,
                       long fId,
                       long sId,
                       java.lang.String cs,
                       int us,
                       int fs,
                       int css,
                       java.sql.Date fDate,
                       java.sql.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(java.sql.ResultSet res)
                throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

toString

public java.lang.String toString()
Retrieves this object as as a string. Contains all the variables.

Overrides:
toString in class java.lang.Object
Returns:
A string representing this object.

getGuid

public long getGuid()
Retrieves the guid.

Returns:
The guid.

getReplicaId

public java.lang.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 java.lang.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 java.sql.Date getFileListCheckDateTime()
Retrieves the filelistCheckdatetime.

Returns:
The filelistCheckdatetime.

getChecksumCheckdatetime

public java.sql.Date getChecksumCheckdatetime()
Retrieves the checksumCheckDatetime.

Returns:
The checksumCheckDateTime.