| Constructor and Description |
|---|
FileHeader()
For logging only.
|
FileHeader(long fileNum,
long lastEntryInPrevFileOffset) |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(java.lang.StringBuffer 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(java.nio.ByteBuffer logBuffer,
byte entryVersion)
Initialize this object from the data in itemBuf.
|
java.lang.String |
toString()
Print in xml format
|
(package private) int |
validate(java.lang.String fileName,
long expectedFileNum) |
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
FileHeader(long fileNum,
long lastEntryInPrevFileOffset)
public FileHeader()
public int getLogVersion()
int validate(java.lang.String fileName,
long expectedFileNum)
throws DatabaseException
DatabaseException - if the header isn't valid.long getLastEntryInPrevFileOffset()
public static int entrySize()
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablelogBuffer - is the destination bufferSerialize this object into the buffer. Update cksum with all
the bytes used by this objectpublic void readFromLog(java.nio.ByteBuffer logBuffer,
byte entryVersion)
throws LogException
LoggablereadFromLog in interface LoggableitemBuf - the source bufferLogExceptionInitialize this object from the data in itemBuf.public void dumpLog(java.lang.StringBuffer sb,
boolean verbose)
LoggabledumpLog in interface Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, 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 java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2004,2008 Oracle. All rights reserved.