public interface LogEntry extends Cloneable
The log entry on disk consists of a log header defined by LogManager and the specific contents of the log entry.
Log entries that support replication are required to implement ReplicableLogEntry.
| Modifier and Type | Method and Description |
|---|---|
LogEntry |
clone() |
StringBuilder |
dumpEntry(StringBuilder sb,
boolean verbose)
Print out the contents of an entry.
|
void |
dumpRep(StringBuilder sb)
Dump the contents of the log entry that are interesting for
replication.
|
DatabaseId |
getDbId() |
LogEntryType |
getLogType() |
Object |
getMainItem() |
Object |
getResolvedItem(DatabaseImpl dbImpl)
Construct a complete item from a item entry, fetching additional log
entries as needed to ensure that a usable main object is available.
|
int |
getSize() |
long |
getTransactionId() |
boolean |
isDeleted()
Returns whether this is a deleted LN.
|
boolean |
isImmediatelyObsolete(DatabaseImpl dbImpl)
Returns true if this item should be counted as obsolete when logged.
|
boolean |
logicalEquals(LogEntry other) |
void |
postLogWork(LogEntryHeader header,
long justLoggedLsn,
VLSN vlsn)
Do any processing we need to do after logging, while under the logging
latch.
|
void |
readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
Read in a log entry.
|
void |
setLogType(LogEntryType entryType)
Inform a LogEntry instance of its corresponding LogEntryType.
|
void |
writeEntry(ByteBuffer logBuffer)
Serialize this object into the buffer.
|
void setLogType(LogEntryType entryType)
LogEntryType getLogType()
void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, ByteBuffer entryBuffer)
StringBuilder dumpEntry(StringBuilder sb, boolean verbose)
Object getMainItem()
Object getResolvedItem(DatabaseImpl dbImpl)
DatabaseId getDbId()
long getTransactionId()
int getSize()
void writeEntry(ByteBuffer logBuffer)
logBuffer - is the destination bufferboolean isImmediatelyObsolete(DatabaseImpl dbImpl)
boolean isDeleted()
void postLogWork(LogEntryHeader header, long justLoggedLsn, VLSN vlsn)
LogEntry clone()
boolean logicalEquals(LogEntry other)
void dumpRep(StringBuilder sb)
Copyright © 2024. All rights reserved.