AckedRequest
, Streamable
, Writeable
, TaskAwareRequest
public class ClusterRerouteRequest extends AcknowledgedRequest<ClusterRerouteRequest>
TransportRequest.Empty
Writeable.Reader<V>, Writeable.Writer<V>
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_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.
|
masterNodeTimeout
ackTimeout, timeout, timeout, timeout
getShouldStoreResult
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
remoteAddress, remoteAddress
getParentTask, setParentTask
public 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 ActionRequest
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class AcknowledgedRequest<ClusterRerouteRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class AcknowledgedRequest<ClusterRerouteRequest>
java.io.IOException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object