|
|||||||||
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 | |
---|---|
Object |
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. |
int |
getLastLoggedSize()
|
LogEntryType |
getLogType()
|
Object |
getMainItem()
|
int |
getSize()
|
long |
getTransactionId()
|
boolean |
isDeleted()
Returns true if this item should be counted as obsoleted when logged. |
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,
ByteBuffer entryBuffer,
boolean readFullItem)
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(LogEntryHeader header, ByteBuffer entryBuffer, boolean readFullItem) throws DatabaseException
DatabaseException
StringBuilder dumpEntry(StringBuilder sb, boolean verbose)
Object getMainItem()
long getTransactionId()
int getSize()
int getLastLoggedSize()
void writeEntry(LogEntryHeader header, ByteBuffer logBuffer)
logBuffer
- is the destination bufferboolean isDeleted()
void postLogWork(long justLoggedLsn) throws DatabaseException
DatabaseException
Object clone() throws CloneNotSupportedException
CloneNotSupportedException
boolean logicalEquals(LogEntry other)
void dumpRep(StringBuilder sb)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |