| Constructor and Description |
|---|
FileHeader()
For logging only.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
|
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer.
|
public int getLogVersion()
public static int entrySize()
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(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(ByteBuffer logBuffer, int unusableEntryVersion)
LoggablereadFromLog in interface LoggablelogBuffer - the source bufferunusableEntryVersion - the log version of the dataInitialize this object from the data in itemBuf.public void dumpLog(StringBuilder sb, boolean verbose)
LoggabledumpLog 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.Copyright © 2024. All rights reserved.