|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.je.txn.TxnEnd
This class writes out a transaction commit or transaction end record.
| Constructor Summary | |
|
TxnEnd()
For constructing from the log |
(package private) |
TxnEnd(long id,
long lastLsn)
|
| Method Summary | |
void |
dumpLog(StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
long |
getId()
|
(package private) long |
getLastLsn()
|
int |
getLogSize()
|
abstract LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
protected abstract String |
getTagName()
|
long |
getTransactionId()
|
boolean |
logEntryIsTransactional()
|
boolean |
marshallOutsideWriteLatch()
Return true if this item can be marshalled outside the log write latch. |
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging latch. |
void |
readFromLog(ByteBuffer logBuffer)
Initialize this object from the data in itemBuf. |
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
TxnEnd(long id,
long lastLsn)
public TxnEnd()
| Method Detail |
public long getId()
long getLastLsn()
protected abstract String getTagName()
public abstract LogEntryType getLogType()
LoggableObject
getLogType in interface LoggableObjectLoggableObject.getLogType()public boolean marshallOutsideWriteLatch()
LoggableObject
marshallOutsideWriteLatch in interface LoggableObjectCan be marshalled outside the log write latch.public void postLogWork(long justLoggedLsn)
LoggableObject
postLogWork in interface LoggableObjectLoggableObject.postLogWork(long)public int getLogSize()
getLogSize in interface LogWritableLogWritable.getLogSize()public void writeToLog(ByteBuffer logBuffer)
LogWritable
writeToLog in interface LogWritablelogBuffer - is the destination bufferLogWritable.writeToLog(java.nio.ByteBuffer)public void readFromLog(ByteBuffer logBuffer)
LogReadable
readFromLog in interface LogReadableLogReadable.readFromLog(java.nio.ByteBuffer)
public void dumpLog(StringBuffer sb,
boolean verbose)
LogReadable
dumpLog in interface LogReadablesb - destination string bufferverbose - if true, dump the full, verbose versionLogReadable.dumpLog(java.lang.StringBuffer, boolean)public boolean logEntryIsTransactional()
logEntryIsTransactional in interface LogReadableLogReadable.logEntryIsTransactional()public long getTransactionId()
getTransactionId in interface LogReadableLogReadable.getTransactionId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||