public class ElectionQuorum extends Object
| Constructor and Description |
|---|
ElectionQuorum()
For unit testing
|
ElectionQuorum(RepImpl repImpl) |
| Modifier and Type | Method and Description |
|---|---|
int |
getElectableGroupSizeOverride() |
boolean |
haveQuorum(QuorumPolicy quorumPolicy,
int votes)
Predicate to determine whether we have a quorum based upon the quorum
policy.
|
boolean |
nodeTypeParticipates(NodeType nodeType)
Return whether nodes of the specified type should participate in
elections.
|
void |
setElectableGroupSizeOverride(int override) |
public ElectionQuorum(RepImpl repImpl)
public ElectionQuorum()
public void setElectableGroupSizeOverride(int override)
public int getElectableGroupSizeOverride()
public boolean haveQuorum(QuorumPolicy quorumPolicy, int votes)
public boolean nodeTypeParticipates(NodeType nodeType)
nodeType - the node typeCopyright © 2024. All rights reserved.