Class PreVoteCollector

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

public class PreVoteCollector extends Object
  • Field Details

  • Method Details

    • start

      public org.elasticsearch.core.Releasable start(ClusterState clusterState, 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 String toString()
      Overrides:
      toString in class Object