public class ClusterRerouteRequest extends AcknowledgedRequest<ClusterRerouteRequest>
TransportRequest.EmptyDEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
ClusterRerouteRequest() |
| Modifier and Type | Method and Description |
|---|---|
ClusterRerouteRequest |
add(AllocationCommand... commands)
Adds allocation commands to be applied to the cluster.
|
boolean |
dryRun()
Returns the current dry run flag which allows to run the commands without actually applying them,
just to get back the resulting cluster state back.
|
ClusterRerouteRequest |
dryRun(boolean dryRun)
Sets a dry run flag (defaults to false) allowing to run the commands without
actually applying them to the cluster state, and getting the resulting cluster state back.
|
boolean |
explain()
Returns the current explain flag
|
ClusterRerouteRequest |
explain(boolean explain)
Sets the explain flag, which will collect information about the reroute
request without executing the actions.
|
void |
readFrom(StreamInput in) |
ClusterRerouteRequest |
source(BytesReference source)
Sets the source for the request.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeoutmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutcreateTask, createTask, setParentTaskgetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmasterNodeTimeoutpublic ClusterRerouteRequest add(AllocationCommand... commands)
public ClusterRerouteRequest dryRun(boolean dryRun)
public boolean dryRun()
public ClusterRerouteRequest explain(boolean explain)
public boolean explain()
public ClusterRerouteRequest source(BytesReference source) throws Exception
Exceptionpublic ActionRequestValidationException validate()
validate in class ActionRequest<ClusterRerouteRequest>public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class MasterNodeRequest<ClusterRerouteRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeRequest<ClusterRerouteRequest>IOExceptionCopyright © 2009–2017. All rights reserved.