Module org.elasticsearch.server
Class UpdateDesiredNodesRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<UpdateDesiredNodesRequest>
org.elasticsearch.action.support.master.AcknowledgedRequest<UpdateDesiredNodesRequest>
org.elasticsearch.action.admin.cluster.desirednodes.UpdateDesiredNodesRequest
- All Implemented Interfaces:
Writeable,RefCounted,TaskAwareRequest
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
AcknowledgedRequest.PlainNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
DEFAULT_ACK_TIMEOUTFields inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUTFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionUpdateDesiredNodesRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, String historyID, long version, List<DesiredNode> nodes, boolean dryRun) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclusterHasRequiredFeatures(Predicate<NodeFeature> clusterHasFeature) booleanstatic UpdateDesiredNodesRequestfromXContent(TimeValue masterNodeTimeout, TimeValue ackTimeout, String historyID, long version, boolean dryRun, XContentParser parser) getNodes()longinthashCode()booleanisDryRun()validate()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequest
ackTimeout, ackTimeoutMethods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
infiniteMasterNodeTimeout, masterNodeTimeout, masterNodeTimeout, masterTermMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
NODES_FIELD
-
-
Constructor Details
-
UpdateDesiredNodesRequest
public UpdateDesiredNodesRequest(TimeValue masterNodeTimeout, TimeValue ackTimeout, String historyID, long version, List<DesiredNode> nodes, boolean dryRun) -
UpdateDesiredNodesRequest
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classAcknowledgedRequest<UpdateDesiredNodesRequest>- Throws:
IOException
-
fromXContent
public static UpdateDesiredNodesRequest fromXContent(TimeValue masterNodeTimeout, TimeValue ackTimeout, String historyID, long version, boolean dryRun, XContentParser parser) throws IOException - Throws:
IOException
-
getHistoryID
-
getVersion
public long getVersion() -
getNodes
-
isDryRun
public boolean isDryRun() -
clusterHasRequiredFeatures
-
equals
-
hashCode
public int hashCode() -
validate
- Overrides:
validatein classAcknowledgedRequest<UpdateDesiredNodesRequest>
-