public class TransportExistsAction extends TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
TransportBroadcastOperationAction.AsyncBroadcastAction
clusterService, threadPool, transportService
actionName
componentSettings, logger, settings
Constructor and Description |
---|
TransportExistsAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
IndicesService indicesService,
ScriptService scriptService,
CacheRecycler cacheRecycler,
PageCacheRecycler pageCacheRecycler,
BigArrays bigArrays,
ActionFilters actionFilters) |
Modifier and Type | Method and Description |
---|---|
protected ClusterBlockException |
checkGlobalBlock(ClusterState state,
ExistsRequest request) |
protected ClusterBlockException |
checkRequestBlock(ClusterState state,
ExistsRequest countRequest,
String[] concreteIndices) |
protected void |
doExecute(ExistsRequest request,
ActionListener<ExistsResponse> listener) |
protected String |
executor() |
protected ExistsRequest |
newRequest() |
protected ExistsResponse |
newResponse(ExistsRequest request,
AtomicReferenceArray shardsResponses,
ClusterState clusterState) |
protected org.elasticsearch.action.exists.ShardExistsRequest |
newShardRequest() |
protected org.elasticsearch.action.exists.ShardExistsRequest |
newShardRequest(int numShards,
ShardRouting shard,
ExistsRequest request) |
protected org.elasticsearch.action.exists.ShardExistsResponse |
newShardResponse() |
protected org.elasticsearch.action.exists.ShardExistsResponse |
shardOperation(org.elasticsearch.action.exists.ShardExistsRequest request) |
protected GroupShardsIterator |
shards(ClusterState clusterState,
ExistsRequest request,
String[] concreteIndices)
Determines the shards this operation will be executed on.
|
execute, execute, forceThreadedListener
nodeName
@Inject public TransportExistsAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ScriptService scriptService, CacheRecycler cacheRecycler, PageCacheRecycler pageCacheRecycler, BigArrays bigArrays, ActionFilters actionFilters)
protected void doExecute(ExistsRequest request, ActionListener<ExistsResponse> listener)
doExecute
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected String executor()
executor
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected ExistsRequest newRequest()
newRequest
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected org.elasticsearch.action.exists.ShardExistsRequest newShardRequest()
newShardRequest
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected org.elasticsearch.action.exists.ShardExistsRequest newShardRequest(int numShards, ShardRouting shard, ExistsRequest request)
newShardRequest
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected org.elasticsearch.action.exists.ShardExistsResponse newShardResponse()
newShardResponse
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected GroupShardsIterator shards(ClusterState clusterState, ExistsRequest request, String[] concreteIndices)
TransportBroadcastOperationAction
shards
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected ClusterBlockException checkGlobalBlock(ClusterState state, ExistsRequest request)
checkGlobalBlock
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected ClusterBlockException checkRequestBlock(ClusterState state, ExistsRequest countRequest, String[] concreteIndices)
checkRequestBlock
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected ExistsResponse newResponse(ExistsRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState)
newResponse
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected org.elasticsearch.action.exists.ShardExistsResponse shardOperation(org.elasticsearch.action.exists.ShardExistsRequest request) throws ElasticsearchException
shardOperation
in class TransportBroadcastOperationAction<ExistsRequest,ExistsResponse,org.elasticsearch.action.exists.ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
ElasticsearchException
Copyright © 2009–2015. All rights reserved.