Package com.sleepycat.db
Class ReplicationConfig
java.lang.Object
com.sleepycat.db.ReplicationConfig
- All Implemented Interfaces:
Cloneable
Settings that configure Berkeley DB replication. Used in the
Environment.setReplicationConfig(com.sleepycat.db.ReplicationConfig, boolean) method.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReplicationConfigThe replication master should automatically re-initialize outdated clients (defaults to on.)static final ReplicationConfigThe replication master should send groups of records to the clients in a single network transfer.static final ReplicationConfigThe client should delay synchronizing to a newly declared master (defaults to off).static final ReplicationConfigReplication Manager automatically runs elections to choose a new master when the old master appears to have become disconnected.static final ReplicationConfigMaster leases will be used for this site.static final ReplicationConfigBerkeley DB method calls that would normally block while clients are in recovery should return errors immediately.static final ReplicationConfigReplication Manager observes the strict "majority" rule in managing elections, even in a group with only 2 sites. -
Method Summary
-
Field Details
-
BULK
The replication master should send groups of records to the clients in a single network transfer. -
DELAYCLIENT
The client should delay synchronizing to a newly declared master (defaults to off). Clients configured in this way will remain unsynchronized until the application calls theEnvironment.syncReplication()method. -
AUTOINIT
The replication master should automatically re-initialize outdated clients (defaults to on.) -
NOWAIT
Berkeley DB method calls that would normally block while clients are in recovery should return errors immediately. -
STRICT_2SITE
Replication Manager observes the strict "majority" rule in managing elections, even in a group with only 2 sites. This means the client in a 2-site group will be unable to take over as master if the original master fails or becomes disconnected. (See the Elections section in the Berkeley DB Reference Guide for more information.) Both sites in the replication group should have the same value for this parameter. -
ELECTIONS
Replication Manager automatically runs elections to choose a new master when the old master appears to have become disconnected. This option is turned on by default. -
LEASE
Master leases will be used for this site.Configuring this option may result in the
Database.get()andCursor.get*()methods throwing aDatabaseExceptionwhen attempting to read entries from a database after the site's master lease has expired.Once this option is turned on, it may never be turned off.
-
-
Method Details