public class TransportExistsAction extends TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
TransportBroadcastAction.AsyncBroadcastAction
clusterService, transportService
actionName, indexNameExpressionResolver, parseFieldMatcher, taskManager, threadPool
deprecationLogger, logger, settings
Constructor and Description |
---|
TransportExistsAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
IndicesService indicesService,
ScriptService scriptService,
PageCacheRecycler pageCacheRecycler,
BigArrays bigArrays,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver) |
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(Task task,
ExistsRequest request,
ActionListener<ExistsResponse> listener) |
protected ExistsResponse |
newResponse(ExistsRequest request,
AtomicReferenceArray shardsResponses,
ClusterState clusterState) |
protected ShardExistsRequest |
newShardRequest(int numShards,
ShardRouting shard,
ExistsRequest request) |
protected org.elasticsearch.action.exists.ShardExistsResponse |
newShardResponse() |
protected org.elasticsearch.action.exists.ShardExistsResponse |
shardOperation(ShardExistsRequest request) |
protected GroupShardsIterator |
shards(ClusterState clusterState,
ExistsRequest request,
String[] concreteIndices)
Determines the shards this operation will be executed on.
|
doExecute, shardOperation
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public TransportExistsAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ScriptService scriptService, PageCacheRecycler pageCacheRecycler, BigArrays bigArrays, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
protected void doExecute(Task task, ExistsRequest request, ActionListener<ExistsResponse> listener)
doExecute
in class TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected ShardExistsRequest newShardRequest(int numShards, ShardRouting shard, ExistsRequest request)
newShardRequest
in class TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected org.elasticsearch.action.exists.ShardExistsResponse newShardResponse()
newShardResponse
in class TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected GroupShardsIterator shards(ClusterState clusterState, ExistsRequest request, String[] concreteIndices)
TransportBroadcastAction
shards
in class TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected ClusterBlockException checkGlobalBlock(ClusterState state, ExistsRequest request)
checkGlobalBlock
in class TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected ClusterBlockException checkRequestBlock(ClusterState state, ExistsRequest countRequest, String[] concreteIndices)
checkRequestBlock
in class TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected ExistsResponse newResponse(ExistsRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState)
newResponse
in class TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
protected org.elasticsearch.action.exists.ShardExistsResponse shardOperation(ShardExistsRequest request)
shardOperation
in class TransportBroadcastAction<ExistsRequest,ExistsResponse,ShardExistsRequest,org.elasticsearch.action.exists.ShardExistsResponse>
Copyright © 2009–2016. All rights reserved.