public class SingleItemEntry extends BaseEntry 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.StringBuilder |
dumpEntry(java.lang.StringBuilder sb,
boolean verbose)
Print out the contents of an entry.
|
void |
dumpRep(java.lang.StringBuilder sb)
Dump the contents of the log entry that are interesting for
replication.
|
DatabaseId |
getDbId() |
java.lang.Object |
getMainItem() |
int |
getSize() |
long |
getTransactionId() |
boolean |
logicalEquals(LogEntry other) |
void |
readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
java.nio.ByteBuffer entryBuffer)
Read in a log entry.
|
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
Serialize this object into the buffer.
|
clone, getLastLoggedSize, getLogType, getNoArgsConstructor, getResolvedItem, isDeleted, newInstanceOfType, newInstanceOfType, postFetchInit, postLogWork, setLogType, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getLastLoggedSize, getLogType, getResolvedItem, isDeleted, postLogWork, setLogTypepublic SingleItemEntry(java.lang.Class<?> logClass)
public SingleItemEntry(LogEntryType entryType, Loggable item)
public void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, java.nio.ByteBuffer entryBuffer)
LogEntryreadEntry in interface LogEntryLogEntry.readEntry(com.sleepycat.je.dbi.EnvironmentImpl, com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)public java.lang.StringBuilder dumpEntry(java.lang.StringBuilder sb,
boolean verbose)
LogEntrydumpEntry in interface LogEntrydumpEntry in class BaseEntryLogEntry.dumpEntry(java.lang.StringBuilder, boolean)public void dumpRep(java.lang.StringBuilder sb)
LogEntrydumpRep in interface LogEntryLogEntry.dumpRep(java.lang.StringBuilder)public java.lang.Object getMainItem()
getMainItem in interface LogEntryLogEntry.getMainItem()public long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public DatabaseId getDbId()
public int getSize()
public void writeEntry(LogEntryHeader header, java.nio.ByteBuffer destBuffer)
LogEntrywriteEntry in interface LogEntrydestBuffer - is the destination bufferLogEntry.writeEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)public boolean logicalEquals(LogEntry other)
logicalEquals in interface LogEntryLogEntry.logicalEquals(com.sleepycat.je.log.entry.LogEntry)Copyright (c) 2004-2012 Oracle. All rights reserved.