public class ReplicatedDatabaseConfig extends BasicVersionedWriteLoggable
| Constructor and Description |
|---|
ReplicatedDatabaseConfig()
For reading
|
| 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.
|
DatabaseConfig |
getReplicaConfig(EnvironmentImpl envImpl)
Create a database config for use on the replica which contains
all the configuration options that were conveyed by way of this class.
|
long |
getTransactionId() |
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(ByteBuffer itemBuffer,
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 DatabaseConfig getReplicaConfig(EnvironmentImpl envImpl)
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 itemBuffer, int entryVersion)
LoggableitemBuffer - 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.