Class PreVoteCollector

java.lang.Object
org.elasticsearch.cluster.coordination.PreVoteCollector

public class PreVoteCollector
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String REQUEST_PRE_VOTE_ACTION_NAME  
  • Method Summary

    Modifier and Type Method Description
    Releasable start​(ClusterState clusterState, java.lang.Iterable<DiscoveryNode> broadcastNodes)
    Start a new pre-voting round.
    java.lang.String toString()  
    void update​(PreVoteResponse preVoteResponse, DiscoveryNode leader)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • REQUEST_PRE_VOTE_ACTION_NAME

      public static final java.lang.String REQUEST_PRE_VOTE_ACTION_NAME
      See Also:
      Constant Field Values
  • Method Details

    • start

      public Releasable start​(ClusterState clusterState, java.lang.Iterable<DiscoveryNode> broadcastNodes)
      Start a new pre-voting round.
      Parameters:
      clusterState - the last-accepted cluster state
      broadcastNodes - 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)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object