public class IndicesShardStoresRequest extends MasterNodeReadRequest<IndicesShardStoresRequest> implements IndicesRequest.Replaceable
IndicesShardStoresAction
TransportRequest.Empty
IndicesRequest.Replaceable
local
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
IndicesShardStoresRequest() |
IndicesShardStoresRequest(java.lang.String... indices)
Create a request for shard stores info for
indices |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
indices()
Returns the array of indices that the action relates to
|
IndicesShardStoresRequest |
indices(java.lang.String... indices)
Sets the indices for the shard stores request
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
IndicesShardStoresRequest |
indicesOptions(IndicesOptions indicesOptions)
Specifies what type of requested indices to ignore and wildcard indices expressions
By default, expands wildcards to both open and closed indices
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.util.EnumSet<ClusterHealthStatus> |
shardStatuses()
Returns the shard criteria to get store information on
|
IndicesShardStoresRequest |
shardStatuses(java.lang.String... shardStatuses)
Set statuses to filter shards to get stores info on.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
local, local
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
getShouldStoreResult
createTask, getDescription, getParentTask, setParentTask, setParentTask
remoteAddress, remoteAddress
public IndicesShardStoresRequest(java.lang.String... indices)
indices
public IndicesShardStoresRequest()
public IndicesShardStoresRequest shardStatuses(java.lang.String... shardStatuses)
ClusterHealthStatus
for details.
Defaults to "yellow" and "red" statusshardStatuses
- acceptable values are "green", "yellow", "red" and "all"public IndicesShardStoresRequest indicesOptions(IndicesOptions indicesOptions)
public IndicesShardStoresRequest indices(java.lang.String... indices)
indices
in interface IndicesRequest.Replaceable
public java.util.EnumSet<ClusterHealthStatus> shardStatuses()
public java.lang.String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public ActionRequestValidationException validate()
validate
in class ActionRequest
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class MasterNodeReadRequest<IndicesShardStoresRequest>
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class MasterNodeReadRequest<IndicesShardStoresRequest>
java.io.IOException