com.sleepycat.je.recovery
Class CheckpointEnd

java.lang.Object
  extended by com.sleepycat.je.recovery.CheckpointEnd
All Implemented Interfaces:
Loggable

public class CheckpointEnd
extends java.lang.Object
implements Loggable

CheckpointEnd encapsulates the information needed by a checkpoint end log entry.


Constructor Summary
CheckpointEnd()
           
CheckpointEnd(java.lang.String invoker, long checkpointStartLsn, long rootLsn, long firstActiveLsn, long lastLocalNodeId, long lastReplicatedNodeId, int lastLocalDbId, int lastReplicatedDbId, long lastLocalTxnId, long lastReplicatedTxnId, long id)
           
 
Method Summary
 void dumpLog(java.lang.StringBuffer sb, boolean verbose)
          Write the object into the string buffer for log dumping.
 int getLogSize()
           
 long getTransactionId()
           
 boolean logicalEquals(Loggable other)
           
 void readFromLog(java.nio.ByteBuffer logBuffer, byte entryVersion)
          Initialize this object from the data in itemBuf.
 java.lang.String toString()
           
 void writeToLog(java.nio.ByteBuffer logBuffer)
          Serialize this object into the buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckpointEnd

public CheckpointEnd(java.lang.String invoker,
                     long checkpointStartLsn,
                     long rootLsn,
                     long firstActiveLsn,
                     long lastLocalNodeId,
                     long lastReplicatedNodeId,
                     int lastLocalDbId,
                     int lastReplicatedDbId,
                     long lastLocalTxnId,
                     long lastReplicatedTxnId,
                     long id)

CheckpointEnd

public CheckpointEnd()
Method Detail

getLogSize

public int getLogSize()
Specified by:
getLogSize in interface Loggable
Returns:
number of bytes used to store this object.
See Also:
Loggable.getLogSize()

writeToLog

public void writeToLog(java.nio.ByteBuffer logBuffer)
Description copied from interface: Loggable
Serialize this object into the buffer.

Specified by:
writeToLog in interface Loggable
Parameters:
logBuffer - is the destination buffer
See Also:
Loggable.writeToLog(java.nio.ByteBuffer)

readFromLog

public void readFromLog(java.nio.ByteBuffer logBuffer,
                        byte entryVersion)
                 throws LogException
Description copied from interface: Loggable
Initialize this object from the data in itemBuf.

Specified by:
readFromLog in interface Loggable
Throws:
LogException
See Also:
Loggable.readFromLog(java.nio.ByteBuffer, byte)

dumpLog

public void dumpLog(java.lang.StringBuffer sb,
                    boolean verbose)
Description copied from interface: Loggable
Write the object into the string buffer for log dumping. Each object should be dumped without indentation or new lines and should be valid XML.

Specified by:
dumpLog in interface Loggable
Parameters:
sb - destination string buffer
verbose - if true, dump the full, verbose version
See Also:
Loggable.dumpLog(java.lang.StringBuffer, boolean)

getTransactionId

public long getTransactionId()
Specified by:
getTransactionId in interface Loggable
Returns:
the transaction id embedded within this loggable object. Objects that have no transaction id should return 0.
See Also:
Loggable.getTransactionId()

logicalEquals

public boolean logicalEquals(Loggable other)
Specified by:
logicalEquals in interface Loggable
Returns:
true if these two loggable items are logically the same. Used for replication testing.
See Also:
Always return false, this item should never be compared.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object