public class IndicesShardStoresRequest extends MasterNodeReadRequest<IndicesShardStoresRequest> implements IndicesRequest.Replaceable
IndicesShardStoresAction
TransportRequest.Empty
IndicesRequest.Replaceable
local
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
headers
Constructor and Description |
---|
IndicesShardStoresRequest() |
IndicesShardStoresRequest(String... indices)
Create a request for shard stores info for
indices |
Modifier and Type | Method and Description |
---|---|
String[] |
indices()
Returns the array of indices that the action relates to
|
IndicesShardStoresRequest |
indices(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) |
EnumSet<ClusterHealthStatus> |
shardStatuses()
Returns the shard criteria to get store information on
|
IndicesShardStoresRequest |
shardStatuses(String... shardStatuses)
Set statuses to filter shards to get stores info on.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
local, local
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
createTask, createTask, setParentTask
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public IndicesShardStoresRequest(String... indices)
indices
public IndicesShardStoresRequest()
public IndicesShardStoresRequest shardStatuses(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(String... indices)
indices
in interface IndicesRequest.Replaceable
public EnumSet<ClusterHealthStatus> shardStatuses()
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public ActionRequestValidationException validate()
validate
in class ActionRequest<IndicesShardStoresRequest>
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeReadRequest<IndicesShardStoresRequest>
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeReadRequest<IndicesShardStoresRequest>
IOException
Copyright © 2009–2016. All rights reserved.