Class PreVoteCollector

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

public class PreVoteCollector extends Object
Collects information prior to a promotion vote
Opensearch.internal:
  • Field Details

  • Method Details

    • start

      public org.opensearch.common.lease.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