|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.log.FileHeader
public class FileHeader
A FileHeader embodies the header information at the beginning of each log file.
| Constructor Summary | |
|---|---|
FileHeader()
For logging only. |
|
FileHeader(long fileNum,
long lastEntryInPrevFileOffset)
|
|
| Method Summary | |
|---|---|
boolean |
countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. |
void |
dumpLog(StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
(package private) static int |
entrySize()
A header is always a known size. |
(package private) long |
getLastEntryInPrevFileOffset()
|
int |
getLogSize()
|
LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
long |
getTransactionId()
|
boolean |
logEntryIsTransactional()
|
boolean |
marshallOutsideWriteLatch()
Return true if this item can be marshalled outside the log write latch. |
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging latch. |
void |
readFromLog(ByteBuffer logBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf. |
String |
toString()
Print in xml format |
(package private) boolean |
validate(String fileName,
long expectedFileNum)
|
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
FileHeader(long fileNum,
long lastEntryInPrevFileOffset)
public FileHeader()
| Method Detail |
|---|
boolean validate(String fileName,
long expectedFileNum)
throws DatabaseException
DatabaseException - if the header isn't valid.long getLastEntryInPrevFileOffset()
public LogEntryType getLogType()
LoggableObject
getLogType in interface LoggableObjectLoggableObject.getLogType()public boolean marshallOutsideWriteLatch()
LoggableObject
marshallOutsideWriteLatch in interface LoggableObjectCan be marshalled outside the log write latch.public boolean countAsObsoleteWhenLogged()
LoggableObject
countAsObsoleteWhenLogged in interface LoggableObjectLoggableObject.countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn)
throws DatabaseException
LoggableObject
postLogWork in interface LoggableObjectDatabaseExceptionLoggableObject.postLogWork(long)static int entrySize()
public int getLogSize()
getLogSize in interface LogWritableLogWritable.getLogSize()public void writeToLog(ByteBuffer logBuffer)
LogWritable
writeToLog in interface LogWritablelogBuffer - is the destination bufferSerialize this object into the buffer. Update cksum with all
the bytes used by this object
public void readFromLog(ByteBuffer logBuffer,
byte entryTypeVersion)
throws LogException
LogReadable
readFromLog in interface LogReadableitemBuf - the source buffer
LogExceptionInitialize this object from the data in itemBuf.
public void dumpLog(StringBuffer sb,
boolean verbose)
LogReadable
dumpLog in interface LogReadablesb - destination string bufferverbose - if true, dump the full, verbose versionLogReadable.dumpLog(java.lang.StringBuffer, boolean)public boolean logEntryIsTransactional()
logEntryIsTransactional in interface LogReadableLogReadable.logEntryIsTransactional()public long getTransactionId()
getTransactionId in interface LogReadableLogReadable.getTransactionId()public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||