Class ClearVotingConfigExclusionsRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<ClearVotingConfigExclusionsRequest>
org.elasticsearch.action.admin.cluster.configuration.ClearVotingConfigExclusionsRequest
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a request to remove all the voting config exclusions from the cluster state. -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.core.TimeValuebooleanvoidsetTimeout(org.elasticsearch.core.TimeValue timeout)voidsetWaitForRemoval(boolean waitForRemoval)toString()validate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterNodeTimeoutMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
ClearVotingConfigExclusionsRequest
public ClearVotingConfigExclusionsRequest()Construct a request to remove all the voting config exclusions from the cluster state. -
ClearVotingConfigExclusionsRequest
- 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(org.elasticsearch.core.TimeValue timeout)- Parameters:
timeout- how long to wait for the excluded nodes to be removed ifwaitForRemovalis true. Defaults to 30 seconds.
-
getTimeout
public org.elasticsearch.core.TimeValue getTimeout()- Returns:
- how long to wait for the excluded nodes to be removed if
waitForRemovalis true. Defaults to 30 seconds.
-
validate
- Specified by:
validatein classActionRequest
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classMasterNodeRequest<ClearVotingConfigExclusionsRequest>- Throws:
IOException
-
toString
- Overrides:
toStringin classTransportRequest
-