|
|||||||||
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. a log header defined by LogManager b. a VLSN, if this entry type requires it, and replication is on. c. the specific contents of the log entry. This class encompasses (b & c).
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. |
java.lang.StringBuffer |
dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
Print out the contents of an entry. |
LogEntryType |
getLogType()
|
java.lang.Object |
getMainItem()
|
int |
getSize()
|
long |
getTransactionId()
|
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging latch. |
void |
readEntry(LogEntryHeader header,
java.nio.ByteBuffer entryBuffer,
boolean readFullItem)
Read in an log entry. |
void |
setLastLoggedSize(int size)
Sets the total size of the last logged entry, including the header. |
void |
setLogType(LogEntryType entryType)
Inform a LogEntry instance of its corresponding LogEntryType. |
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer. |
Method Detail |
---|
void setLogType(LogEntryType entryType)
LogEntryType getLogType()
void readEntry(LogEntryHeader header, java.nio.ByteBuffer entryBuffer, boolean readFullItem) throws DatabaseException
DatabaseException
java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb, boolean verbose)
java.lang.Object getMainItem()
long getTransactionId()
int getSize()
void setLastLoggedSize(int size)
void writeEntry(LogEntryHeader header, java.nio.ByteBuffer logBuffer)
logBuffer
- is the destination bufferboolean countAsObsoleteWhenLogged()
void postLogWork(long justLoggedLsn) throws DatabaseException
DatabaseException
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |