Class QuorumVote<V extends Vote,T>
java.lang.Object
org.apache.activemq.artemis.core.server.cluster.quorum.QuorumVote<V,T>
- Direct Known Subclasses:
QuorumVoteServerConnect
the vote itself. the vote can be decided by the enquirer or sent out to each node in the quorum.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidallVotesCast(Topology voteTopology) called by theQuorumManagerwhen all the votes have been cast and received.abstract Votecalled by theQuorumManagerwhen one of the nodes in the quorum is successfully connected to.abstract Tget the decion of the votegetName()the name of this quorum vote, used for identifying the correctQuorumVoteHandlerabstract Votecalled by theQuorumManagerfails to connect to a node in the quorum.abstract voidcalled by theQuorumManagerwhen a vote can be made, either from the cluster or decided by itself.
-
Constructor Details
-
QuorumVote
-
-
Method Details
-
connected
called by theQuorumManagerwhen one of the nodes in the quorum is successfully connected to. The QuorumVote can then decide whether a decision can be made with just that information.- Returns:
- the vote to use
-
notConnected
called by theQuorumManagerfails to connect to a node in the quorum. The QuorumVote can then decide whether a decision can be made with just that information however the node cannot cannot be asked.- Returns:
- the vote to use
-
vote
called by theQuorumManagerwhen a vote can be made, either from the cluster or decided by itself.- Parameters:
vote- the vote to make.
-
getDecision
get the decion of the vote- Returns:
- the voting decision
-
allVotesCast
called by theQuorumManagerwhen all the votes have been cast and received.- Parameters:
voteTopology- the topology of where the votes were sent.
-
getName
the name of this quorum vote, used for identifying the correctQuorumVoteHandler- Returns:
- the name of the wuorum vote
-
getOldName
-