Modifier and Type | Field and Description |
---|---|
static int |
LOG_SIZE |
Constructor and Description |
---|
VLSN()
Constructor for VLSNs that are read from disk.
|
VLSN(int generationId,
int environmentId,
long sequence) |
Modifier and Type | Method and Description |
---|---|
void |
dumpLog(java.lang.StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
int |
getContentSize() |
int |
getLogSize() |
long |
getTransactionId() |
void |
readFromBuffer(java.nio.ByteBuffer buffer)
BOZO, remove this
|
void |
readFromLog(java.nio.ByteBuffer buffer,
byte entryTypeVersion)
Initialize this object from the data in itemBuf.
|
void |
writeToBuffer(java.nio.ByteBuffer buffer) |
void |
writeToLog(java.nio.ByteBuffer buffer)
Serialize this object into the buffer.
|
public static final int LOG_SIZE
public VLSN(int generationId, int environmentId, long sequence)
public VLSN()
public int getLogSize()
getLogSize
in interface Loggable
Loggable.getLogSize()
public void writeToLog(java.nio.ByteBuffer buffer)
Loggable
writeToLog
in interface Loggable
buffer
- is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer buffer, byte entryTypeVersion) throws LogException
Loggable
readFromLog
in interface Loggable
LogException
Loggable.writeToLog(java.nio.ByteBuffer)
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 int getContentSize()
public void writeToBuffer(java.nio.ByteBuffer buffer)
buffer
- is the destination bufferpublic void readFromBuffer(java.nio.ByteBuffer buffer) throws LogException
LogException