Class ClearVotingConfigExclusionsRequest

All Implemented Interfaces:
Writeable, RefCounted, TaskAwareRequest

public class ClearVotingConfigExclusionsRequest extends MasterNodeRequest<ClearVotingConfigExclusionsRequest>
A request to clear the voting config exclusions from the cluster state, optionally waiting for these nodes to be removed from the cluster first.
  • Constructor Details

    • ClearVotingConfigExclusionsRequest

      public ClearVotingConfigExclusionsRequest()
      Construct a request to remove all the voting config exclusions from the cluster state.
    • ClearVotingConfigExclusionsRequest

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

    • getWaitForRemoval

      public boolean getWaitForRemoval()
      Returns:
      whether to wait for the currently excluded nodes to be removed from the cluster before removing their exclusions. True by default.
    • setWaitForRemoval

      public void setWaitForRemoval(boolean waitForRemoval)
      Parameters:
      waitForRemoval - whether to wait for the currently excluded nodes to be removed from the cluster before removing their exclusions. True by default.
    • setTimeout

      public void setTimeout(TimeValue timeout)
      Parameters:
      timeout - how long to wait for the excluded nodes to be removed if waitForRemoval is true. Defaults to 30 seconds.
    • getTimeout

      public TimeValue getTimeout()
      Returns:
      how long to wait for the excluded nodes to be removed if waitForRemoval is true. Defaults to 30 seconds.
    • validate

      Specified by:
      validate in class ActionRequest
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class MasterNodeRequest<ClearVotingConfigExclusionsRequest>
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class TransportRequest