org.elasticsearch.action.count
Class TransportCountAction

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

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, ScriptService scriptService)
           
 
Method Summary
protected  ClusterBlockException checkGlobalBlock(ClusterState state, CountRequest request)
           
protected  ClusterBlockException checkRequestBlock(ClusterState state, CountRequest countRequest, String[] concreteIndices)
           
protected  String executor()
           
protected  CountRequest newRequest()
           
protected  CountResponse newResponse(CountRequest request, 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(ClusterState clusterState, CountRequest request, String[] concreteIndices)
           
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
accumulateExceptions, doExecute, ignoreException, ignoreNonActiveExceptions
 
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

TransportCountAction

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

executor

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

transportAction

protected String transportAction()
Specified by:
transportAction 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(ClusterState clusterState,
                                     CountRequest request,
                                     String[] concreteIndices)
Specified by:
shards in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

checkGlobalBlock

protected ClusterBlockException checkGlobalBlock(ClusterState state,
                                                 CountRequest request)
Specified by:
checkGlobalBlock in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

checkRequestBlock

protected ClusterBlockException checkRequestBlock(ClusterState state,
                                                  CountRequest countRequest,
                                                  String[] concreteIndices)
Specified by:
checkRequestBlock in class TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>

newResponse

protected CountResponse newResponse(CountRequest request,
                                    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


Copyright © 2009-2012. All Rights Reserved.