Module org.elasticsearch.server
Class ClearVotingConfigExclusionsRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.AbstractTransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.LegacyActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<ClearVotingConfigExclusionsRequest>
org.elasticsearch.action.admin.cluster.configuration.ClearVotingConfigExclusionsRequest
- All Implemented Interfaces:
Writeable,RefCounted,TaskAwareRequest,TransportRequest
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 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
INFINITE_MASTER_NODE_TIMEOUT, TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUTFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionClearVotingConfigExclusionsRequest(TimeValue masterNodeTimeout) Construct a request to remove all the voting config exclusions from the cluster state. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetTimeout(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, masterTermMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestIdMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, createTask, getDescription, setParentTask
-
Constructor Details
-
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
- Parameters:
timeout- how long to wait for the excluded nodes to be removed ifwaitForRemovalis true. Defaults to 30 seconds.
-
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 classAbstractTransportRequest
-