org.elasticsearch.action.count
Class TransportCountAction

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<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>
              extended by org.elasticsearch.action.count.TransportCountAction
All Implemented Interfaces:
Action<CountRequest,CountResponse>

public class TransportCountAction
extends TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>


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
TransportCountAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService)
           
 
Method Summary
protected  void checkBlock(CountRequest request, ClusterState state)
           
protected  CountRequest newRequest()
           
protected  CountResponse newResponse(CountRequest request, java.util.concurrent.atomic.AtomicReferenceArray shardsResponses, ClusterState clusterState)
           
protected  org.elasticsearch.action.count.ShardCountRequest newShardRequest()
           
protected  org.elasticsearch.action.count.ShardCountRequest newShardRequest(ShardRouting shard, CountRequest request)
           
protected  org.elasticsearch.action.count.ShardCountResponse newShardResponse()
           
protected  org.elasticsearch.action.count.ShardCountResponse shardOperation(org.elasticsearch.action.count.ShardCountRequest request)
           
protected  GroupShardsIterator shards(CountRequest request, ClusterState clusterState)
           
protected  java.lang.String transportAction()
           
protected  java.lang.String transportShardAction()
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
accumulateExceptions, doExecute, hasNextShard, ignoreNonActiveExceptions, nextShardOrNull
 
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

TransportCountAction

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

transportAction

protected java.lang.String transportAction()
Specified by:
transportAction in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

transportShardAction

protected java.lang.String transportShardAction()
Specified by:
transportShardAction in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

newRequest

protected CountRequest newRequest()
Specified by:
newRequest in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

newShardRequest

protected org.elasticsearch.action.count.ShardCountRequest newShardRequest()
Specified by:
newShardRequest in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

newShardRequest

protected org.elasticsearch.action.count.ShardCountRequest newShardRequest(ShardRouting shard,
                                                                           CountRequest request)
Specified by:
newShardRequest in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

newShardResponse

protected org.elasticsearch.action.count.ShardCountResponse newShardResponse()
Specified by:
newShardResponse in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

shards

protected GroupShardsIterator shards(CountRequest request,
                                     ClusterState clusterState)
Specified by:
shards in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

checkBlock

protected void checkBlock(CountRequest request,
                          ClusterState state)
Overrides:
checkBlock in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

newResponse

protected CountResponse newResponse(CountRequest request,
                                    java.util.concurrent.atomic.AtomicReferenceArray shardsResponses,
                                    ClusterState clusterState)
Specified by:
newResponse in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

shardOperation

protected org.elasticsearch.action.count.ShardCountResponse shardOperation(org.elasticsearch.action.count.ShardCountRequest request)
                                                                    throws ElasticSearchException
Specified by:
shardOperation in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>
Throws:
ElasticSearchException