com.cloudtran.replicator.ssdStore
Class SSDFileHeader

java.lang.Object
  extended by com.cloudtran.replicator.ssdStore.SSDFileHeader

public class SSDFileHeader
extends Object


Field Summary
static int headerLength
           
 
Constructor Summary
SSDFileHeader()
           
SSDFileHeader(byte[] byteArr)
           
SSDFileHeader(int runNumber, long firstTxSeqNumInRun, long startTimeMillis, long firstTxSeqNumThisFile, long startTimeMillisThisFile)
           
 
Method Summary
 long getFirstTxSeqNumInRun()
           
 long getFirstTxSeqNumThisFile()
           
 int getRunNumber()
           
 long getStartTimeMillis()
           
 long getStartTimeMillisThisFile()
           
 boolean isFileHeaderValid()
           
 String toString()
           
 void writeHeaderToBytes(WriteBuffer.BufferOutput bufferOutput)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

headerLength

public static final int headerLength
See Also:
Constant Field Values
Constructor Detail

SSDFileHeader

public SSDFileHeader()

SSDFileHeader

public SSDFileHeader(int runNumber,
                     long firstTxSeqNumInRun,
                     long startTimeMillis,
                     long firstTxSeqNumThisFile,
                     long startTimeMillisThisFile)

SSDFileHeader

public SSDFileHeader(byte[] byteArr)
Method Detail

isFileHeaderValid

public boolean isFileHeaderValid()

getRunNumber

public int getRunNumber()

getFirstTxSeqNumInRun

public long getFirstTxSeqNumInRun()

getStartTimeMillis

public long getStartTimeMillis()

getFirstTxSeqNumThisFile

public long getFirstTxSeqNumThisFile()

getStartTimeMillisThisFile

public long getStartTimeMillisThisFile()

writeHeaderToBytes

public void writeHeaderToBytes(WriteBuffer.BufferOutput bufferOutput)
                        throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object