Module org.elasticsearch.server
Class StatefulPreVoteCollector
java.lang.Object
org.elasticsearch.cluster.coordination.PreVoteCollector
org.elasticsearch.cluster.coordination.StatefulPreVoteCollector
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.cluster.coordination.PreVoteCollector
PreVoteCollector.Factory
-
Field Summary
FieldsFields inherited from class org.elasticsearch.cluster.coordination.PreVoteCollector
state
-
Constructor Summary
ConstructorsConstructorDescriptionStatefulPreVoteCollector
(TransportService transportService, Runnable startElection, LongConsumer updateMaxTermSeen, ElectionStrategy electionStrategy, NodeHealthService nodeHealthService, LeaderHeartbeatService leaderHeartbeatService) -
Method Summary
Modifier and TypeMethodDescriptionstart
(ClusterState clusterState, Iterable<DiscoveryNode> broadcastNodes) Start a new pre-voting round.toString()
Methods inherited from class org.elasticsearch.cluster.coordination.PreVoteCollector
update
-
Field Details
-
REQUEST_PRE_VOTE_ACTION_NAME
- See Also:
-
-
Constructor Details
-
StatefulPreVoteCollector
public StatefulPreVoteCollector(TransportService transportService, Runnable startElection, LongConsumer updateMaxTermSeen, ElectionStrategy electionStrategy, NodeHealthService nodeHealthService, LeaderHeartbeatService leaderHeartbeatService)
-
-
Method Details
-
start
Start a new pre-voting round.- Specified by:
start
in classPreVoteCollector
- Parameters:
clusterState
- the last-accepted cluster statebroadcastNodes
- the nodes from whom to request pre-votes- Returns:
- the pre-voting round, which can be closed to end the round early.
-
toString
-