public abstract class VersionedWriteTxnEnd extends TxnEnd implements VersionedWriteLoggable
| Constructor and Description |
|---|
VersionedWriteTxnEnd()
For constructing from the log.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
Collection<VersionedWriteLoggable> |
getEmbeddedLoggables() |
int |
getLastFormatChange()
Returns the log version of the most recent format change for this
loggable item.
|
int |
getLogSize() |
int |
getLogSize(int logVersion,
boolean forReplication)
Returns the number of bytes needed to store this object in the format
for the specified log version.
|
boolean |
hasReplicationFormat()
Returns whether this format has a variant that is optimized for
replication.
|
boolean |
isReplicationFormatWorthwhile(ByteBuffer logBuffer,
int srcVersion,
int destVersion)
Returns whether it is worthwhile to materialize and then re-serialize a
log entry in a format optimized for replication.
|
void |
readFromLog(ByteBuffer logBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer.
|
void |
writeToLog(ByteBuffer logBuffer,
int entryVersion,
boolean forReplication)
Serializes this object into the specified buffer in the format for the
specified log version.
|
getDTVLSN, getId, getMasterNodeId, getTagName, getTime, getTransactionId, hasLoggedEntries, setDTVLSNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransactionId, logicalEqualspublic VersionedWriteTxnEnd()
public int getLastFormatChange()
VersionedWriteLoggablegetLastFormatChange in interface VersionedWriteLoggableReplicableLogEntry.getLastFormatChange()public Collection<VersionedWriteLoggable> getEmbeddedLoggables()
getEmbeddedLoggables in interface VersionedWriteLoggableReplicableLogEntry.getEmbeddedLoggables()public int getLogSize()
getLogSize in interface Loggablepublic void writeToLog(ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablelogBuffer - is the destination bufferpublic int getLogSize(int logVersion,
boolean forReplication)
VersionedWriteLoggableLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.getLogSize in interface VersionedWriteLoggablelogVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void writeToLog(ByteBuffer logBuffer, int entryVersion, boolean forReplication)
VersionedWriteLoggableLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.writeToLog in interface VersionedWriteLoggablelogBuffer - the destination bufferentryVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void readFromLog(ByteBuffer logBuffer, int entryVersion)
LoggablereadFromLog in interface LoggablelogBuffer - the source bufferentryVersion - the log version of the datapublic boolean hasReplicationFormat()
VersionedWriteLoggablehasReplicationFormat in interface VersionedWriteLoggablepublic boolean isReplicationFormatWorthwhile(ByteBuffer logBuffer, int srcVersion, int destVersion)
VersionedWriteLoggableWARNING: The logBuffer position must not be changed by this method.
WARNING: The shared LogEntry object is used for calling this method, and this method must not change any of the fields in the object.
isReplicationFormatWorthwhile in interface VersionedWriteLoggablelogBuffer - contains the entry that would be re-serialized.srcVersion - the log version of entry in logBuffer.destVersion - the version that would be used for re-serialization.public void dumpLog(StringBuilder sb, boolean verbose)
LoggableCopyright © 2024. All rights reserved.