public class Arbiter extends Object
A node is in active arbitration state if
The Arbiter detects which arbitration options are available in the JE HA group.
| Constructor and Description |
|---|
Arbiter(RepImpl repImpl)
Examine environment configuration and rep group membership to figure out
which arbitration options are in operation for this HA group.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateArbitration()
The replication node knows that it has lost its durability quorum, and
wants to try to enter active arbitration mode.
|
boolean |
activationPossible()
Return true if it's possible that this node can switch into active
arbitration.
|
void |
endArbitration()
The node has determined that it need not be in active arbitration.
|
int |
getAckCount(Durability.ReplicaAckPolicy ackPolicy)
Return the arbitration-influenced durability quorum size.
|
int |
getElectionQuorumSize(QuorumPolicy quorumPolicy)
Return the arbitration-influenced election quorum size.
|
boolean |
isActive()
Return true if this node is in active arbitration.
|
boolean |
isApplicable(Durability.ReplicaAckPolicy ackPolicy)
Return true if this node is in active arbitration, and if arbitration
should take precedence over the durability quorum policy.
|
boolean |
isApplicable(QuorumPolicy quorumPolicy)
Return true if this node is in active arbitration, and if arbitration
should take precedence over the election quorum policy.
|
void |
processConfigChange(ReplicationMutableConfig newConfig)
The replication configuration was changed.
|
public Arbiter(RepImpl repImpl)
public boolean activateArbitration()
public void endArbitration()
public boolean activationPossible()
For example, if designated primary arbitration is used, then it's only possible to move into active arbitration if the Designated Primary configuration parameter is set for this node. If LWT Node arbitration is used, then this node must have a valid connection to the arbiter node.
public boolean isApplicable(QuorumPolicy quorumPolicy)
public boolean isApplicable(Durability.ReplicaAckPolicy ackPolicy)
public int getElectionQuorumSize(QuorumPolicy quorumPolicy)
public int getAckCount(Durability.ReplicaAckPolicy ackPolicy)
public void processConfigChange(ReplicationMutableConfig newConfig)
public boolean isActive()
Copyright © 2024. All rights reserved.