|
|||||||||
| 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 | |
|---|---|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
static int |
entrySize()
A header is always a known size. |
(package private) long |
getLastEntryInPrevFileOffset()
|
int |
getLogSize()
|
int |
getLogVersion()
|
long |
getTransactionId()
|
boolean |
logicalEquals(Loggable other)
|
void |
readFromLog(ByteBuffer logBuffer,
int unusableEntryVersion)
Initialize this object from the data in itemBuf. |
String |
toString()
Print in xml format |
(package private) int |
validate(EnvironmentImpl envImpl,
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 |
|---|
public int getLogVersion()
int validate(EnvironmentImpl envImpl,
String fileName,
long expectedFileNum)
throws DatabaseException
DatabaseExceptionlong getLastEntryInPrevFileOffset()
public static int entrySize()
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(ByteBuffer logBuffer)
Loggable
writeToLog in interface LoggablelogBuffer - is the destination bufferSerialize this object into the buffer. Update cksum with all
the bytes used by this object
public void readFromLog(ByteBuffer logBuffer,
int unusableEntryVersion)
Loggable
readFromLog in interface LoggableitemBuf - the source bufferInitialize this object from the data in itemBuf.
public void dumpLog(StringBuilder sb,
boolean verbose)
Loggable
dumpLog in interface Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuilder, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()public boolean logicalEquals(Loggable other)
logicalEquals in interface LoggableAlways return false, this item should never be compared.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||