com.sleepycat.je.txn
Class RollbackStart

java.lang.Object
  extended by com.sleepycat.je.txn.RollbackStart
All Implemented Interfaces:
Loggable

public class RollbackStart
extends Object
implements Loggable

This class indicates the end of a partial rollback at syncup. This is a non-replicated entry. Although this is a replication related class, it resides in the utilint package because it is referenced in LogEntryType.java, and is used in a general way at recovery.


Constructor Summary
RollbackStart()
          For constructing from the log.
RollbackStart(VLSN matchpointVLSN, long matchpointLSN, Set<Long> activeTxnIds)
           
 
Method Summary
 void dumpLog(StringBuilder sb, boolean verbose)
          Write the object into the string buffer for log dumping.
 Set<Long> getActiveTxnIds()
           
 int getLogSize()
           
 long getMatchpoint()
           
 VLSN getMatchpointVLSN()
           
 long getTransactionId()
           
 boolean logicalEquals(Loggable other)
           
 void readFromLog(ByteBuffer buffer, int entryVersion)
          "
 String toString()
           
 void writeToLog(ByteBuffer buffer)
          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

RollbackStart

public RollbackStart(VLSN matchpointVLSN,
                     long matchpointLSN,
                     Set<Long> activeTxnIds)

RollbackStart

public RollbackStart()
For constructing from the log.

Method Detail

getMatchpoint

public long getMatchpoint()

getActiveTxnIds

public Set<Long> getActiveTxnIds()

getMatchpointVLSN

public VLSN getMatchpointVLSN()

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(ByteBuffer buffer)
Description copied from interface: Loggable
Serialize this object into the buffer.

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

readFromLog

public void readFromLog(ByteBuffer buffer,
                        int entryVersion)
"

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

dumpLog

public void dumpLog(StringBuilder 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.StringBuilder, 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:
Loggable.logicalEquals(com.sleepycat.je.log.Loggable)

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004-2010 Oracle. All rights reserved.