public class TransportIndicesStatsAction extends TransportBroadcastByNodeAction<IndicesStatsRequest,IndicesStatsResponse,ShardStats>
TransportBroadcastByNodeAction.AsyncAction, TransportBroadcastByNodeAction.EmptyResult, TransportBroadcastByNodeAction.NodeRequestactionName, indexNameExpressionResolver, parseFieldMatcher, taskManager, threadPooldeprecationLogger, logger, settings| Constructor and Description |
|---|
TransportIndicesStatsAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
IndicesService indicesService,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver) |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterBlockException |
checkGlobalBlock(ClusterState state,
IndicesStatsRequest request)
Executes a global block check before polling the cluster state.
|
protected ClusterBlockException |
checkRequestBlock(ClusterState state,
IndicesStatsRequest request,
String[] concreteIndices)
Executes a global request-level check before polling the cluster state.
|
protected IndicesStatsResponse |
newResponse(IndicesStatsRequest request,
int totalShards,
int successfulShards,
int failedShards,
List<ShardStats> responses,
List<ShardOperationFailedException> shardFailures,
ClusterState clusterState)
Creates a new response to the underlying request.
|
protected IndicesStatsRequest |
readRequestFrom(StreamInput in)
Deserialize a request from an input stream
|
protected ShardStats |
readShardResult(StreamInput in)
Deserialize a shard-level result from an input stream
|
protected ShardStats |
shardOperation(IndicesStatsRequest request,
ShardRouting shardRouting)
Executes the shard-level operation.
|
protected ShardsIterator |
shards(ClusterState clusterState,
IndicesStatsRequest request,
String[] concreteIndices)
Status goes across *all* shards.
|
doExecute, doExecuteexecute, execute, execute, executelogDeprecatedSetting, logRemovedSetting, nodeName@Inject public TransportIndicesStatsAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
protected ShardsIterator shards(ClusterState clusterState, IndicesStatsRequest request, String[] concreteIndices)
shards in class TransportBroadcastByNodeAction<IndicesStatsRequest,IndicesStatsResponse,ShardStats>clusterState - the cluster staterequest - the underlying requestconcreteIndices - the concrete indices on which to execute the operationprotected ClusterBlockException checkGlobalBlock(ClusterState state, IndicesStatsRequest request)
TransportBroadcastByNodeActioncheckGlobalBlock in class TransportBroadcastByNodeAction<IndicesStatsRequest,IndicesStatsResponse,ShardStats>state - the cluster staterequest - the underlying requestprotected ClusterBlockException checkRequestBlock(ClusterState state, IndicesStatsRequest request, String[] concreteIndices)
TransportBroadcastByNodeActioncheckRequestBlock in class TransportBroadcastByNodeAction<IndicesStatsRequest,IndicesStatsResponse,ShardStats>state - the cluster staterequest - the underlying requestconcreteIndices - the concrete indices on which to execute the operationprotected ShardStats readShardResult(StreamInput in) throws IOException
TransportBroadcastByNodeActionreadShardResult in class TransportBroadcastByNodeAction<IndicesStatsRequest,IndicesStatsResponse,ShardStats>in - input streamIOExceptionprotected IndicesStatsResponse newResponse(IndicesStatsRequest request, int totalShards, int successfulShards, int failedShards, List<ShardStats> responses, List<ShardOperationFailedException> shardFailures, ClusterState clusterState)
TransportBroadcastByNodeActionnewResponse in class TransportBroadcastByNodeAction<IndicesStatsRequest,IndicesStatsResponse,ShardStats>request - the underlying requesttotalShards - the total number of shards considered for execution of the operationsuccessfulShards - the total number of shards for which execution of the operation was successfulfailedShards - the total number of shards for which execution of the operation failedresponses - the per-node aggregated shard-level resultsshardFailures - the exceptions corresponding to shard operationa failuresclusterState - the cluster stateprotected IndicesStatsRequest readRequestFrom(StreamInput in) throws IOException
TransportBroadcastByNodeActionreadRequestFrom in class TransportBroadcastByNodeAction<IndicesStatsRequest,IndicesStatsResponse,ShardStats>in - input streamIOExceptionprotected ShardStats shardOperation(IndicesStatsRequest request, ShardRouting shardRouting)
TransportBroadcastByNodeActionshardOperation in class TransportBroadcastByNodeAction<IndicesStatsRequest,IndicesStatsResponse,ShardStats>request - the node-level requestshardRouting - the shard on which to execute the operationCopyright © 2009–2017. All rights reserved.