Class AddVotingConfigExclusionsRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<AddVotingConfigExclusionsRequest>
org.elasticsearch.action.admin.cluster.configuration.AddVotingConfigExclusionsRequest
- All Implemented Interfaces:
Writeable
,org.elasticsearch.core.RefCounted
,TaskAwareRequest
public class AddVotingConfigExclusionsRequest
extends MasterNodeRequest<AddVotingConfigExclusionsRequest>
A request to add voting config exclusions for certain master-eligible nodes, and wait for these nodes to be removed from the voting
configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
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
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
-
Constructor Summary
ConstructorDescriptionAddVotingConfigExclusionsRequest(String... nodeNames)
Construct a request to add voting config exclusions for master-eligible nodes matching the given node names, and wait for a default 30 seconds for these exclusions to take effect, removing the nodes from the voting configuration.AddVotingConfigExclusionsRequest(String[] nodeDescriptions, String[] nodeIds, String[] nodeNames, org.elasticsearch.core.TimeValue timeout)
Construct a request to add voting config exclusions for master-eligible nodes matching the given descriptions, and wait for these nodes to be removed from the voting configuration. -
Method Summary
Modifier and TypeMethodDescriptionString[]
String[]
String[]
org.elasticsearch.core.TimeValue
toString()
validate()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
DEPRECATION_MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AddVotingConfigExclusionsRequest
Construct a request to add voting config exclusions for master-eligible nodes matching the given node names, and wait for a default 30 seconds for these exclusions to take effect, removing the nodes from the voting configuration.- Parameters:
nodeNames
- Names of the nodes to add - seeresolveVotingConfigExclusions(ClusterState)
-
AddVotingConfigExclusionsRequest
public AddVotingConfigExclusionsRequest(String[] nodeDescriptions, String[] nodeIds, String[] nodeNames, org.elasticsearch.core.TimeValue timeout)Construct a request to add voting config exclusions for master-eligible nodes matching the given descriptions, and wait for these nodes to be removed from the voting configuration.- Parameters:
nodeDescriptions
- Descriptions of the nodes whose exclusions to add - seeDiscoveryNodes.resolveNodes(String...)
.nodeIds
- Ids of the nodes whose exclusions to add - seeresolveVotingConfigExclusions(ClusterState)
.nodeNames
- Names of the nodes whose exclusions to add - seeresolveVotingConfigExclusions(ClusterState)
.timeout
- How long to wait for the added exclusions to take effect and be removed from the voting configuration.
-
AddVotingConfigExclusionsRequest
- Throws:
IOException
-
-
Method Details
-
getNodeDescriptions
- Returns:
- descriptions of the nodes for whom to add voting config exclusions.
-
getNodeIds
- Returns:
- ids of the nodes for whom to add voting config exclusions.
-
getNodeNames
- Returns:
- names of the nodes for whom to add voting config exclusions.
-
getTimeout
public org.elasticsearch.core.TimeValue getTimeout()- Returns:
- how long to wait after adding the exclusions for the nodes to be removed from the voting configuration.
-
validate
- Specified by:
validate
in classActionRequest
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classMasterNodeRequest<AddVotingConfigExclusionsRequest>
- Throws:
IOException
-
toString
- Overrides:
toString
in classTransportRequest
-