public interface LogEntry
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged.
|
java.lang.StringBuffer |
dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
Print out the contents of an entry.
|
LogEntryType |
getLogType() |
java.lang.Object |
getMainItem() |
int |
getSize() |
long |
getTransactionId() |
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging
latch.
|
void |
readEntry(LogEntryHeader header,
java.nio.ByteBuffer entryBuffer,
boolean readFullItem)
Read in an log entry.
|
void |
setLastLoggedSize(int size)
Sets the total size of the last logged entry, including the header.
|
void |
setLogType(LogEntryType entryType)
Inform a LogEntry instance of its corresponding LogEntryType.
|
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
void setLogType(LogEntryType entryType)
LogEntryType getLogType()
void readEntry(LogEntryHeader header, java.nio.ByteBuffer entryBuffer, boolean readFullItem) throws DatabaseException
DatabaseException
java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb, boolean verbose)
java.lang.Object getMainItem()
long getTransactionId()
int getSize()
void setLastLoggedSize(int size)
void writeEntry(LogEntryHeader header, java.nio.ByteBuffer logBuffer)
logBuffer
- is the destination bufferboolean countAsObsoleteWhenLogged()
void postLogWork(long justLoggedLsn) throws DatabaseException
DatabaseException
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException