org.elasticsearch.action.count
Class TransportCountAction
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.action.support.BaseAction<Request,Response>
org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<CountRequest,CountResponse,org.elasticsearch.action.count.ShardCountRequest,org.elasticsearch.action.count.ShardCountResponse>
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportCountAction
@Inject
public TransportCountAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
IndicesService indicesService)
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