public class Matchpoint extends BasicVersionedWriteLoggable
| Constructor and Description |
|---|
Matchpoint()
For constructing from the log.
|
Matchpoint(int repMasterNodeId) |
| 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 logVersion,
boolean forReplication)
Returns the number of bytes needed to store this object in the format
for the specified log version.
|
int |
getMasterNodeId() |
long |
getTransactionId() |
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(ByteBuffer logBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
void |
writeToLog(ByteBuffer logBuffer,
int logVersion,
boolean forReplication)
Serializes this object into the specified buffer in the format for the
specified log version.
|
getLogSize, hasReplicationFormat, isReplicationFormatWorthwhile, writeToLogpublic Matchpoint(int repMasterNodeId)
public Matchpoint()
public int getMasterNodeId()
public int getLastFormatChange()
VersionedWriteLoggableReplicableLogEntry.getLastFormatChange()public Collection<VersionedWriteLoggable> getEmbeddedLoggables()
public int getLogSize(int logVersion,
boolean forReplication)
VersionedWriteLoggableLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.logVersion - the log versionforReplication - whether the entry will be sent over the wire,
and not written to the log.public void writeToLog(ByteBuffer logBuffer, int logVersion, boolean forReplication)
VersionedWriteLoggableLogEntryType.LOG_VERSION_REPLICATE_OLDER or greater.logBuffer - the destination bufferlogVersion - 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)
LoggablelogBuffer - the source bufferentryVersion - the log version of the datapublic void dumpLog(StringBuilder sb, boolean verbose)
Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionpublic long getTransactionId()
public boolean logicalEquals(Loggable other)
Copyright © 2024. All rights reserved.