public class SingleItemEntry extends java.lang.Object implements LogEntry
the Loggable item
Constructor and Description |
---|
SingleItemEntry(java.lang.Class<?> logClass)
Construct a log entry for reading.
|
SingleItemEntry(LogEntryType entryType,
Loggable item)
Construct a log entry for writing.
|
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.
|
int |
getLastLoggedSize()
By default, return zero because the last logged size is unknown.
|
LogEntryType |
getLogType() |
java.lang.Object |
getMainItem() |
int |
getSize() |
long |
getTransactionId() |
boolean |
logicalEquals(LogEntry other) |
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 a log entry.
|
void |
setLogType(LogEntryType entryType)
Inform a BaseEntry instance of its corresponding LogEntryType.
|
java.lang.String |
toString() |
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
Serialize this object into the buffer.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
countAsObsoleteWhenLogged, getLastLoggedSize, getLogType, postLogWork, setLogType
public SingleItemEntry(java.lang.Class<?> logClass)
public SingleItemEntry(LogEntryType entryType, Loggable item)
public void readEntry(LogEntryHeader header, java.nio.ByteBuffer entryBuffer, boolean readFullItem) throws DatabaseException
LogEntry
readEntry
in interface LogEntry
DatabaseException
LogEntry.readEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer, boolean)
public java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb, boolean verbose)
LogEntry
dumpEntry
in interface LogEntry
LogEntry.dumpEntry(java.lang.StringBuffer, boolean)
public java.lang.Object getMainItem()
getMainItem
in interface LogEntry
LogEntry.getMainItem()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface LogEntry
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
LogEntry.clone()
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public int getSize()
public void writeEntry(LogEntryHeader header, java.nio.ByteBuffer destBuffer)
LogEntry
writeEntry
in interface LogEntry
destBuffer
- is the destination bufferLogEntry.writeEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)
public boolean logicalEquals(LogEntry other)
logicalEquals
in interface LogEntry
LogEntry.logicalEquals(com.sleepycat.je.log.entry.LogEntry)
public void setLogType(LogEntryType entryType)
public LogEntryType getLogType()
public int getLastLoggedSize()
public boolean countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn) throws DatabaseException
DatabaseException
public java.lang.String toString()
toString
in class java.lang.Object