AckedRequest, Streamable, Writeable, TaskAwareRequestpublic class ClusterRerouteRequest extends AcknowledgedRequest<ClusterRerouteRequest>
TransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>DEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor | Description |
|---|---|
ClusterRerouteRequest() |
| Modifier and Type | Method | Description |
|---|---|---|
ClusterRerouteRequest |
add(AllocationCommand... commands) |
Adds allocation commands to be applied to the cluster.
|
ClusterRerouteRequest |
commands(AllocationCommands commands) |
Set the allocation commands to execute.
|
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 |
equals(java.lang.Object obj) |
|
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.
|
AllocationCommands |
getCommands() |
Returns the allocation commands to execute
|
int |
hashCode() |
|
boolean |
isRetryFailed() |
Returns the current retry failed flag
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
ClusterRerouteRequest |
setRetryFailed(boolean retryFailed) |
Sets the retry failed flag (defaults to false).
|
ActionRequestValidationException |
validate() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
masterNodeTimeoutackTimeout, timeout, timeout, timeoutgetShouldStoreResultmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic ClusterRerouteRequest add(AllocationCommand... commands)
public ClusterRerouteRequest dryRun(boolean dryRun)
public boolean dryRun()
public ClusterRerouteRequest explain(boolean explain)
public ClusterRerouteRequest setRetryFailed(boolean retryFailed)
public boolean explain()
public boolean isRetryFailed()
public ClusterRerouteRequest commands(AllocationCommands commands)
public AllocationCommands getCommands()
public ActionRequestValidationException validate()
validate in class ActionRequestpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class AcknowledgedRequest<ClusterRerouteRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class AcknowledgedRequest<ClusterRerouteRequest>java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object