|
|||||||||
| 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 LoggableObjectgetLogType in class TxnEndTxnEnd.getLogType()protected String getTagName()
getTagName in class TxnEndpublic int getLogSize()
getLogSize in interface LogWritablegetLogSize in class TxnEndLoggableObject#getLogSizepublic void writeToLog(ByteBuffer logBuffer)
LogWritable
writeToLog in interface LogWritablewriteToLog in class TxnEndlogBuffer - is the destination bufferLoggableObject#writeToLog
public void readFromLog(ByteBuffer logBuffer,
byte entryTypeVersion)
LogReadable
readFromLog in interface LogReadablereadFromLog in class TxnEndLogReadable#readFromLog
public void dumpLog(StringBuffer sb,
boolean verbose)
LogReadable
dumpLog in interface LogReadabledumpLog in class TxnEndsb - 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 | ||||||||