public class ReplicatedDatabaseConfig extends java.lang.Object implements Loggable
| Constructor and Description |
|---|
ReplicatedDatabaseConfig()
For reading
|
ReplicatedDatabaseConfig(byte flags,
int maxTreeEntriesPerNode,
byte[] btreeComparatorBytes,
byte[] duplicateComparatorBytes,
byte[][] triggerBytes)
For writing
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpLog(java.lang.StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
int |
getLogSize() |
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(java.nio.ByteBuffer itemBuffer,
int entryVersion)
Initialize this object from the data in itemBuf.
|
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
public ReplicatedDatabaseConfig()
ReplicatedDatabaseConfig(byte flags,
int maxTreeEntriesPerNode,
byte[] btreeComparatorBytes,
byte[] duplicateComparatorBytes,
byte[][] triggerBytes)
public DatabaseConfig getReplicaConfig(EnvironmentImpl envImpl)
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablelogBuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer itemBuffer,
int entryVersion)
LoggablereadFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, int)public void dumpLog(java.lang.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 LoggableLoggable.logicalEquals(com.sleepycat.je.log.Loggable)Copyright (c) 2004-2012 Oracle. All rights reserved.