|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogEntry
A Log entry allows you to read, write and dump a database log entry. Each entry may be made up of one or more loggable items. The log entry on disk consists of a log header defined by LogManager and the specific contents of the log entry.
Method Summary | |
---|---|
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()
|
int |
getLastLoggedSize()
|
LogEntryType |
getLogType()
|
Object |
getMainItem()
|
Object |
getResolvedItem(DatabaseImpl dbImpl)
Construct a complete item from a item entry, fetching additional log entries as needed. |
int |
getSize()
|
long |
getTransactionId()
|
boolean |
isDeleted()
Returns true if this item should be counted as obsolete when logged. |
boolean |
logicalEquals(LogEntry other)
|
void |
postLogWork(LogEntryHeader header,
long justLoggedLsn)
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(LogEntryHeader header,
ByteBuffer logBuffer)
Serialize this object into the buffer. |
Method Detail |
---|
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()
int getLastLoggedSize()
void writeEntry(LogEntryHeader header, ByteBuffer logBuffer)
logBuffer
- is the destination bufferboolean isDeleted()
void postLogWork(LogEntryHeader header, long justLoggedLsn)
LogEntry clone()
boolean logicalEquals(LogEntry other)
void dumpRep(StringBuilder sb)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |