|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.entry.BaseEntry
public 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 and c).
Field Summary | |
---|---|
(package private) LogEntryType |
entryType
|
Constructor Summary | |
---|---|
BaseEntry()
Constructor to write an entry. |
|
BaseEntry(Class<?> logClass)
Constructor to read an entry. |
Method Summary | |
---|---|
LogEntry |
clone()
|
abstract StringBuilder |
dumpEntry(StringBuilder sb,
boolean verbose)
Print out the contents of an entry. |
int |
getLastLoggedSize()
By default, return zero because the last logged size is unknown. |
LogEntryType |
getLogType()
|
(package private) static Constructor<?> |
getNoArgsConstructor(Class<?> logClass)
|
Object |
getResolvedItem(DatabaseImpl dbImpl)
By default, this log entry is complete and does not require fetching additional entries. |
boolean |
isDeleted()
Returns true if this item should be counted as obsoleted when logged. |
(package private) Object |
newInstanceOfType()
|
(package private) static Object |
newInstanceOfType(Constructor<?> noArgsConstructor)
|
void |
postFetchInit(DatabaseImpl dbImpl)
|
void |
postLogWork(LogEntryHeader header,
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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sleepycat.je.log.entry.LogEntry |
---|
dumpRep, getDbId, getMainItem, getSize, getTransactionId, logicalEquals, readEntry, writeEntry |
Field Detail |
---|
LogEntryType entryType
Constructor Detail |
---|
BaseEntry(Class<?> logClass)
BaseEntry()
Method Detail |
---|
static Constructor<?> getNoArgsConstructor(Class<?> logClass)
Object newInstanceOfType()
static Object newInstanceOfType(Constructor<?> noArgsConstructor)
public void setLogType(LogEntryType entryType)
setLogType
in interface LogEntry
public LogEntryType getLogType()
getLogType
in interface LogEntry
public Object getResolvedItem(DatabaseImpl dbImpl)
getResolvedItem
in interface LogEntry
public int getLastLoggedSize()
getLastLoggedSize
in interface LogEntry
public boolean isDeleted()
isDeleted
in interface LogEntry
public void postLogWork(LogEntryHeader header, long justLoggedLsn)
postLogWork
in interface LogEntry
DatabaseException
- from subclasses.public void postFetchInit(DatabaseImpl dbImpl)
public abstract StringBuilder dumpEntry(StringBuilder sb, boolean verbose)
LogEntry
dumpEntry
in interface LogEntry
public LogEntry clone()
clone
in interface LogEntry
clone
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |