|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.dbi.ReplicatedDatabaseConfig
public class ReplicatedDatabaseConfig
This class contains all fields of the database configuration which are persistent. This class is logged as part of a nameLN so that databases can be created on replica nodes with the correct configuration.
| Constructor Summary | |
|---|---|
ReplicatedDatabaseConfig()
For reading |
|
ReplicatedDatabaseConfig(byte flags,
int maxMainTreeEntriesPerNode,
int maxDupTreeEntriesPerNode,
byte[] btreeComparatorBytes,
byte[] duplicateComparatorBytes)
For writing |
|
| Method Summary | |
|---|---|
void |
dumpLog(StringBuilder sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
int |
getLogSize()
|
DatabaseConfig |
getReplicaConfig()
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)
Serialize this object into the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicatedDatabaseConfig()
ReplicatedDatabaseConfig(byte flags,
int maxMainTreeEntriesPerNode,
int maxDupTreeEntriesPerNode,
byte[] btreeComparatorBytes,
byte[] duplicateComparatorBytes)
| Method Detail |
|---|
public DatabaseConfig getReplicaConfig()
public int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(ByteBuffer logBuffer)
Loggable
writeToLog in interface LoggablelogBuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuffer,
int entryVersion)
Loggable
readFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, int)
public void dumpLog(StringBuilder sb,
boolean verbose)
Loggable
dumpLog 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||