Class ClearVotingConfigExclusionsRequest
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.action.ActionRequest
org.opensearch.action.support.clustermanager.ClusterManagerNodeRequest<ClearVotingConfigExclusionsRequest>
org.opensearch.action.admin.cluster.configuration.ClearVotingConfigExclusionsRequest
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,TaskAwareRequest
public class ClearVotingConfigExclusionsRequest
extends ClusterManagerNodeRequest<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.
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.opensearch.action.support.clustermanager.ClusterManagerNodeRequest
clusterManagerNodeTimeout, DEFAULT_CLUSTER_MANAGER_NODE_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a request to remove all the voting config exclusions from the cluster state.ClearVotingConfigExclusionsRequest
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.common.unit.TimeValue
boolean
void
setTimeout
(org.opensearch.common.unit.TimeValue timeout) void
setWaitForRemoval
(boolean waitForRemoval) toString()
validate()
void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.support.clustermanager.ClusterManagerNodeRequest
clusterManagerNodeTimeout, clusterManagerNodeTimeout, clusterManagerNodeTimeout, masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
Methods inherited from class org.opensearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensearch.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
public ClearVotingConfigExclusionsRequest(org.opensearch.core.common.io.stream.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(org.opensearch.common.unit.TimeValue timeout) - Parameters:
timeout
- how long to wait for the excluded nodes to be removed ifwaitForRemoval
is true. Defaults to 30 seconds.
-
getTimeout
public org.opensearch.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 classActionRequest
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classClusterManagerNodeRequest<ClearVotingConfigExclusionsRequest>
- Throws:
IOException
-
toString
-