|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.log.entry.BaseEntry
abstract class BaseEntry
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).
| Field Summary | |
|---|---|
(package private) LogEntryType |
entryType
|
(package private) java.lang.Class<?> |
logClass
|
| Constructor Summary | |
|---|---|
BaseEntry()
Constructor to write an entry. |
|
BaseEntry(java.lang.Class<?> logClass)
Constructor to read an entry. |
|
| Method Summary | |
|---|---|
boolean |
countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. |
abstract java.lang.StringBuffer |
dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
|
int |
getLastLoggedSize()
By default, return zero because the last logged size is unknown. |
LogEntryType |
getLogType()
|
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging latch. |
void |
setLogType(LogEntryType entryType)
Inform a BaseEntry instance of its corresponding LogEntryType. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
java.lang.Class<?> logClass
LogEntryType entryType
| Constructor Detail |
|---|
BaseEntry(java.lang.Class<?> logClass)
BaseEntry()
| Method Detail |
|---|
public void setLogType(LogEntryType entryType)
public LogEntryType getLogType()
public int getLastLoggedSize()
public boolean countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn)
throws DatabaseException
DatabaseException
public abstract java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||