dk.netarkivet.archive.arcrepository.bitpreservation
Class ReplicaFileInfo

java.lang.Object
  extended by dk.netarkivet.archive.arcrepository.bitpreservation.ReplicaFileInfo

public class ReplicaFileInfo
extends java.lang.Object

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


Field Summary
 java.lang.String checksum
          The checksum of the file in the segment within the replica.
 java.sql.Date checksumCheckdatetime
          The date for the last checksum update of the entry.
 long fileId
          The id of the file in the file table.
 java.sql.Date filelistCheckdatetime
          The date for the last filelist update of the entry.
 FileListStatus filelistStatus
          The filelist status.
 long guid
          The guid.
 java.lang.String replicaId
          The replicaId.
 long segmentId
          The id of the segment in the segment.
 int uploadStatus
          The uploadstatus.
 
Constructor Summary
ReplicaFileInfo(long gId, java.lang.String rId, long fId, long sId, java.lang.String cs, int us, int fs, java.sql.Date fDate, java.sql.Date cDate)
          Constructor.
 
Method Summary
 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
 

Field Detail

guid

public long guid
The guid. Unique identification key.


replicaId

public java.lang.String replicaId
The replicaId. The identification of the replica.


fileId

public long fileId
The id of the file in the file table.


segmentId

public long segmentId
The id of the segment in the segment.


checksum

public java.lang.String checksum
The checksum of the file in the segment within the replica.


uploadStatus

public int uploadStatus
The uploadstatus.


filelistStatus

public FileListStatus filelistStatus
The filelist status.


filelistCheckdatetime

public java.sql.Date filelistCheckdatetime
The date for the last filelist update of the entry.


checksumCheckdatetime

public java.sql.Date checksumCheckdatetime
The date for the last checksum update of the entry.

Constructor Detail

ReplicaFileInfo

public ReplicaFileInfo(long gId,
                       java.lang.String rId,
                       long fId,
                       long sId,
                       java.lang.String cs,
                       int us,
                       int fs,
                       java.sql.Date fDate,
                       java.sql.Date cDate)
Constructor.

Parameters:
gId - The guid.
rId - The replicaId.
fId - The fileId.
sId - the segmentId.
cs - The checksum.
us - The updatestatus.
fs - The filelist status.
fDate - The date for the last filelist update.
cDate - The date for the last checksum update.
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.