Constructor and Description |
---|
FileHeader()
For logging only.
|
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.
|
int |
getLogSize() |
int |
getLogVersion() |
long |
getTransactionId() |
void |
readFromLog(java.nio.ByteBuffer logBuffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf.
|
java.lang.String |
toString()
Print in xml format
|
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
public int getLogVersion()
public static int entrySize()
public int getLogSize()
getLogSize
in interface Loggable
Loggable.getLogSize()
public void writeToLog(java.nio.ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
logBuffer
- is the destination bufferSerialize this object into the buffer. Update cksum with all
the bytes used by this object
public void readFromLog(java.nio.ByteBuffer logBuffer, byte entryTypeVersion) throws LogException
Loggable
readFromLog
in interface Loggable
itemBuf
- the source bufferLogException
Initialize this object from the data in itemBuf.
public void dumpLog(java.lang.StringBuffer sb, boolean verbose)
Loggable
dumpLog
in interface Loggable
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)
public long getTransactionId()
getTransactionId
in interface Loggable
Loggable.getTransactionId()
public java.lang.String toString()
toString
in class java.lang.Object