public class ClusterRerouteRequest extends AcknowledgedRequest<ClusterRerouteRequest>
TransportRequest.Empty
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
headers
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, writeTimeout
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
createTask, createTask, setParentTask
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
masterNodeTimeout
public 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
Exception
public ActionRequestValidationException validate()
validate
in class ActionRequest<ClusterRerouteRequest>
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeRequest<ClusterRerouteRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<ClusterRerouteRequest>
IOException
Copyright © 2009–2016. All rights reserved.