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, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getLastLoggedSize, getLogType, getResolvedItem, isDeleted, postLogWork, setLogType
public SingleItemEntry(java.lang.Class<?> logClass)
public SingleItemEntry(LogEntryType entryType, Loggable item)
public void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, java.nio.ByteBuffer entryBuffer)
LogEntry
readEntry
in interface LogEntry
LogEntry.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)
LogEntry
dumpEntry
in interface LogEntry
dumpEntry
in class BaseEntry
LogEntry.dumpEntry(java.lang.StringBuilder, boolean)
public void dumpRep(java.lang.StringBuilder sb)
LogEntry
dumpRep
in interface LogEntry
LogEntry.dumpRep(java.lang.StringBuilder)
public java.lang.Object getMainItem()
getMainItem
in interface LogEntry
LogEntry.getMainItem()
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public DatabaseId getDbId()
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)
Copyright (c) 2004-2012 Oracle. All rights reserved.