|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.txn.TxnEnd
com.sleepycat.je.txn.TxnPrepare
public class TxnPrepare
This class writes out a transaction prepare record.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.txn.TxnEnd |
---|
id, time |
Constructor Summary | |
---|---|
TxnPrepare()
For constructing from the log. |
|
TxnPrepare(long id,
Xid xid)
|
Method Summary | |
---|---|
void |
dumpLog(StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
int |
getLogSize()
|
LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
protected String |
getTagName()
|
Xid |
getXid()
|
void |
readFromLog(ByteBuffer logBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf. |
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
Methods inherited from class com.sleepycat.je.txn.TxnEnd |
---|
countAsObsoleteWhenLogged, getId, getLastLsn, getTransactionId, logEntryIsTransactional, marshallOutsideWriteLatch, postLogWork |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TxnPrepare(long id, Xid xid)
public TxnPrepare()
Method Detail |
---|
public Xid getXid()
public LogEntryType getLogType()
LoggableObject
getLogType
in interface LoggableObject
getLogType
in class TxnEnd
TxnEnd.getLogType()
protected String getTagName()
getTagName
in class TxnEnd
public int getLogSize()
getLogSize
in interface LogWritable
getLogSize
in class TxnEnd
LoggableObject#getLogSize
public void writeToLog(ByteBuffer logBuffer)
LogWritable
writeToLog
in interface LogWritable
writeToLog
in class TxnEnd
logBuffer
- is the destination bufferLoggableObject#writeToLog
public void readFromLog(ByteBuffer logBuffer, byte entryTypeVersion)
LogReadable
readFromLog
in interface LogReadable
readFromLog
in class TxnEnd
LogReadable#readFromLog
public void dumpLog(StringBuffer sb, boolean verbose)
LogReadable
dumpLog
in interface LogReadable
dumpLog
in class TxnEnd
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLogReadable#dumpLog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |