public class ClusterRerouteRequest extends AcknowledgedRequest<ClusterRerouteRequest>
TransportRequest.EmptyDEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| コンストラクタと説明 |
|---|
ClusterRerouteRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 クラス内 ActionRequest<ClusterRerouteRequest>public void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamablereadFrom クラス内 MasterNodeRequest<ClusterRerouteRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 MasterNodeRequest<ClusterRerouteRequest>IOExceptionCopyright © 2009–2016. All rights reserved.