org.elasticsearch.action.admin.indices.stats
Class TransportIndicesStatsAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>
              extended by org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction
All Implemented Interfaces:
Action<IndicesStatsRequest,IndicesStats>

public class TransportIndicesStatsAction
extends TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>


Nested Class Summary
static class TransportIndicesStatsAction.IndexShardStatsRequest
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
clusterService, threadPool, transportService
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportIndicesStatsAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService)
           
 
Method Summary
protected  java.lang.String executor()
           
protected  boolean ignoreNonActiveExceptions()
           
protected  IndicesStatsRequest newRequest()
           
protected  IndicesStats newResponse(IndicesStatsRequest request, java.util.concurrent.atomic.AtomicReferenceArray shardsResponses, ClusterState clusterState)
           
protected  TransportIndicesStatsAction.IndexShardStatsRequest newShardRequest()
           
protected  TransportIndicesStatsAction.IndexShardStatsRequest newShardRequest(ShardRouting shard, IndicesStatsRequest request)
           
protected  ShardStats newShardResponse()
           
protected  ShardStats shardOperation(TransportIndicesStatsAction.IndexShardStatsRequest request)
           
protected  GroupShardsIterator shards(IndicesStatsRequest request, java.lang.String[] concreteIndices, ClusterState clusterState)
          Status goes across *all* shards.
protected  java.lang.String transportAction()
           
protected  java.lang.String transportShardAction()
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
accumulateExceptions, checkBlock, doExecute, ignoreException
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
execute, execute
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportIndicesStatsAction

@Inject
public TransportIndicesStatsAction(Settings settings,
                                          ThreadPool threadPool,
                                          ClusterService clusterService,
                                          TransportService transportService,
                                          IndicesService indicesService)
Method Detail

executor

protected java.lang.String executor()
Specified by:
executor in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

transportAction

protected java.lang.String transportAction()
Specified by:
transportAction in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

transportShardAction

protected java.lang.String transportShardAction()
Specified by:
transportShardAction in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

newRequest

protected IndicesStatsRequest newRequest()
Specified by:
newRequest in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

ignoreNonActiveExceptions

protected boolean ignoreNonActiveExceptions()
Overrides:
ignoreNonActiveExceptions in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

shards

protected GroupShardsIterator shards(IndicesStatsRequest request,
                                     java.lang.String[] concreteIndices,
                                     ClusterState clusterState)
Status goes across *all* shards.

Specified by:
shards in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

newResponse

protected IndicesStats newResponse(IndicesStatsRequest request,
                                   java.util.concurrent.atomic.AtomicReferenceArray shardsResponses,
                                   ClusterState clusterState)
Specified by:
newResponse in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

newShardRequest

protected TransportIndicesStatsAction.IndexShardStatsRequest newShardRequest()
Specified by:
newShardRequest in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

newShardRequest

protected TransportIndicesStatsAction.IndexShardStatsRequest newShardRequest(ShardRouting shard,
                                                                             IndicesStatsRequest request)
Specified by:
newShardRequest in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

newShardResponse

protected ShardStats newShardResponse()
Specified by:
newShardResponse in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

shardOperation

protected ShardStats shardOperation(TransportIndicesStatsAction.IndexShardStatsRequest request)
                             throws ElasticSearchException
Specified by:
shardOperation in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>
Throws:
ElasticSearchException