Class PreVoteCollector
- java.lang.Object
-
- org.elasticsearch.cluster.coordination.PreVoteCollector
-
public class PreVoteCollector extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQUEST_PRE_VOTE_ACTION_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Releasablestart(ClusterState clusterState, Iterable<DiscoveryNode> broadcastNodes)Start a new pre-voting round.StringtoString()voidupdate(PreVoteResponse preVoteResponse, DiscoveryNode leader)
-
-
-
Field Detail
-
REQUEST_PRE_VOTE_ACTION_NAME
public static final String REQUEST_PRE_VOTE_ACTION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public Releasable start(ClusterState clusterState, Iterable<DiscoveryNode> broadcastNodes)
Start a new pre-voting round.- 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.
-
update
public void update(PreVoteResponse preVoteResponse, @Nullable DiscoveryNode leader)
-
-