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

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

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  ClusterBlockException checkGlobalBlock(ClusterState state, IndicesStatsRequest request)
           
protected  ClusterBlockException checkRequestBlock(ClusterState state, IndicesStatsRequest request, String[] concreteIndices)
           
protected  String executor()
           
protected  boolean ignoreNonActiveExceptions()
           
protected  IndicesStatsRequest newRequest()
           
protected  IndicesStats newResponse(IndicesStatsRequest request, 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(ClusterState clusterState, IndicesStatsRequest request, String[] concreteIndices)
          Status goes across *all* shards.
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
accumulateExceptions, doExecute, ignoreException
 
Methods inherited from class org.elasticsearch.action.support.TransportAction
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 String executor()
Specified by:
executor in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

transportAction

protected String transportAction()
Specified by:
transportAction 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(ClusterState clusterState,
                                     IndicesStatsRequest request,
                                     String[] concreteIndices)
Status goes across *all* shards.

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

checkGlobalBlock

protected ClusterBlockException checkGlobalBlock(ClusterState state,
                                                 IndicesStatsRequest request)
Specified by:
checkGlobalBlock in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

checkRequestBlock

protected ClusterBlockException checkRequestBlock(ClusterState state,
                                                  IndicesStatsRequest request,
                                                  String[] concreteIndices)
Specified by:
checkRequestBlock in class TransportBroadcastOperationAction<IndicesStatsRequest,IndicesStats,TransportIndicesStatsAction.IndexShardStatsRequest,ShardStats>

newResponse

protected IndicesStats newResponse(IndicesStatsRequest request,
                                   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


Copyright © 2009-2012. All Rights Reserved.