public class ClusterAllocationExplainRequest extends MasterNodeRequest<ClusterAllocationExplainRequest>
TransportRequest.EmptyDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor and Description |
|---|
ClusterAllocationExplainRequest()
Explain the first unassigned shard
|
ClusterAllocationExplainRequest(java.lang.String index,
int shard,
boolean primary)
Create a new allocation explain request.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIndex() |
java.lang.Integer |
getShard() |
boolean |
includeDiskInfo()
Returns true if information about disk usage and shard sizes should also be returned
|
void |
includeDiskInfo(boolean includeDiskInfo)
true to include information about the gathered disk information of nodes in the cluster |
boolean |
includeYesDecisions()
Returns true if all decisions should be included.
|
void |
includeYesDecisions(boolean includeYesDecisions) |
java.lang.Boolean |
isPrimary() |
static ClusterAllocationExplainRequest |
parse(XContentParser parser) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
ClusterAllocationExplainRequest |
setIndex(java.lang.String index) |
ClusterAllocationExplainRequest |
setPrimary(java.lang.Boolean primary) |
ClusterAllocationExplainRequest |
setShard(java.lang.Integer shard) |
java.lang.String |
toString() |
boolean |
useAnyUnassignedShard()
Returns
true iff the first unassigned shard is to be used |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
masterNodeTimeout, masterNodeTimeout, masterNodeTimeoutgetShouldStoreResultcreateTask, getDescription, getParentTask, setParentTask, setParentTaskremoteAddress, remoteAddresspublic ClusterAllocationExplainRequest()
public ClusterAllocationExplainRequest(java.lang.String index,
int shard,
boolean primary)
primary is false, the first unassigned replica
will be picked for explanation. If no replicas are unassigned, the first assigned replica will
be explained.public ActionRequestValidationException validate()
validate in class ActionRequest<ClusterAllocationExplainRequest>public boolean useAnyUnassignedShard()
true iff the first unassigned shard is to be usedpublic ClusterAllocationExplainRequest setIndex(java.lang.String index)
@Nullable public java.lang.String getIndex()
public ClusterAllocationExplainRequest setShard(java.lang.Integer shard)
@Nullable public java.lang.Integer getShard()
public ClusterAllocationExplainRequest setPrimary(java.lang.Boolean primary)
@Nullable public java.lang.Boolean isPrimary()
public void includeYesDecisions(boolean includeYesDecisions)
public boolean includeYesDecisions()
public void includeDiskInfo(boolean includeDiskInfo)
true to include information about the gathered disk information of nodes in the clusterpublic boolean includeDiskInfo()
public java.lang.String toString()
toString in class java.lang.Objectpublic static ClusterAllocationExplainRequest parse(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class MasterNodeRequest<ClusterAllocationExplainRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class MasterNodeRequest<ClusterAllocationExplainRequest>java.io.IOException