Class AddVotingConfigExclusionsRequest

All Implemented Interfaces:
Writeable, RefCounted, TaskAwareRequest

public class AddVotingConfigExclusionsRequest extends MasterNodeRequest<AddVotingConfigExclusionsRequest>
A request to add voting config exclusions for certain master-eligible nodes, and wait for these nodes to be removed from the voting configuration.
  • Field Details

  • Constructor Details

    • AddVotingConfigExclusionsRequest

      public AddVotingConfigExclusionsRequest(String... nodeNames)
      Construct a request to add voting config exclusions for master-eligible nodes matching the given node names, and wait for a default 30 seconds for these exclusions to take effect, removing the nodes from the voting configuration.
      Parameters:
      nodeNames - Names of the nodes to add - see resolveVotingConfigExclusions(ClusterState)
    • AddVotingConfigExclusionsRequest

      public AddVotingConfigExclusionsRequest(String[] nodeDescriptions, String[] nodeIds, String[] nodeNames, TimeValue timeout)
      Construct a request to add voting config exclusions for master-eligible nodes matching the given descriptions, and wait for these nodes to be removed from the voting configuration.
      Parameters:
      nodeDescriptions - Descriptions of the nodes whose exclusions to add - see DiscoveryNodes.resolveNodes(String...).
      nodeIds - Ids of the nodes whose exclusions to add - see resolveVotingConfigExclusions(ClusterState).
      nodeNames - Names of the nodes whose exclusions to add - see resolveVotingConfigExclusions(ClusterState).
      timeout - How long to wait for the added exclusions to take effect and be removed from the voting configuration.
    • AddVotingConfigExclusionsRequest

      public AddVotingConfigExclusionsRequest(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details