Class ClearVotingConfigExclusionsRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.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 java.io.IOException
      Throws:
      java.io.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​(org.elasticsearch.common.unit.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 org.elasticsearch.common.unit.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 java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class MasterNodeRequest<ClearVotingConfigExclusionsRequest>
      Throws:
      java.io.IOException
    • toString

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