| Package | Description |
|---|---|
| com.sleepycat.je.rep.elections |
INTERNAL: Elections of the master node among the nodes in a group.
|
| com.sleepycat.je.rep.impl |
INTERNAL: Top level HA implementation classes.
|
| com.sleepycat.je.rep.monitor |
BDB JE HA support for applications that need to track the composition of a
replication group, in order to do tasks such as load balancing and
request routing.
|
| com.sleepycat.je.rep.util |
BDB JE High Availability command line utilities and helper classes.
|
| Modifier and Type | Method and Description |
|---|---|
static MasterValue |
Learner.findMaster(Protocol protocol,
Set<InetSocketAddress> learnerSockets,
Logger logger,
RepImpl repImpl,
Formatter formatter)
Returns the socket address for the current master, or null if one
could not be determined from the available set of learners.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RepImpl.checkIfMaster(Locker locker)
Ensures that the environment is currently a Master before proceeding
with an operation that requires it to be the master.
|
void |
RepImpl.preLogAbortHook(MasterTxn txn)
Invoked before aborting a MasterTxn, this happens when the master is
going to be a replica because of mastership transfer.
|
void |
RepImpl.preLogCommitHook(MasterTxn txn)
This hook is used primarily to perform the final checks before allowing
the commit operation to proceed.
|
| Modifier and Type | Method and Description |
|---|---|
ReplicationGroup |
Monitor.getGroup()
Returns the current composition of the group.
|
String |
Monitor.getMasterNodeName()
Identifies the master of the replication group, resulting from the last
successful election.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ReplicationGroupAdmin.deleteMember(String nodeName) |
ReplicationNode |
ReplicationGroupAdmin.ensureMonitor(RepNodeImpl monitor) |
ReplicationGroup |
ReplicationGroupAdmin.getGroup()
Returns the current composition of the group from the Master.
|
String |
ReplicationGroupAdmin.getMasterNodeName()
Returns the node name associated with the master
|
void |
ReplicationGroupAdmin.removeMember(String nodeName)
Removes this node from the group, so that it is no longer a member of
the group.
|
String |
ReplicationGroupAdmin.transferMaster(Set<String> nodeNames,
int timeout,
TimeUnit timeUnit,
boolean force)
Transfers the master state from the current master to one of the
electable replicas supplied in the argument list.
|
void |
ReplicationGroupAdmin.updateAddress(String nodeName,
String newHostName,
int newPort)
Update the network address for a specified member of the replication
group.
|
Copyright © 2024. All rights reserved.