Package org.elasticsearch.action.get
Class TransportGetAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.single.shard.TransportSingleShardAction<GetRequest,GetResponse>
org.elasticsearch.action.get.TransportGetAction
Performs the get operation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
TransportSingleShardAction.InternalRequest
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
clusterService, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportGetAction
(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ExecutorSelector executorSelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
asyncShardOperation
(GetRequest request, ShardId shardId, ActionListener<GetResponse> listener) protected String
getExecutor
(GetRequest request, ShardId shardId) protected Writeable.Reader<GetResponse>
protected boolean
resolveIndex
(GetRequest request) protected void
resolveRequest
(ClusterState state, TransportSingleShardAction<GetRequest, GetResponse>.InternalRequest request) protected GetResponse
shardOperation
(GetRequest request, ShardId shardId) protected ShardIterator
shards
(ClusterState state, TransportSingleShardAction<GetRequest, GetResponse>.InternalRequest request) Returns the candidate shards to execute the operation on ornull
the execute the operation locally (the node that received the request)Methods inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
checkGlobalBlock, checkRequestBlock, doExecute, isSubAction
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportGetAction
@Inject public TransportGetAction(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ExecutorSelector executorSelector)
-
-
Method Details
-
resolveIndex
- Specified by:
resolveIndex
in classTransportSingleShardAction<GetRequest,
GetResponse>
-
shards
protected ShardIterator shards(ClusterState state, TransportSingleShardAction<GetRequest, GetResponse>.InternalRequest request) Description copied from class:TransportSingleShardAction
Returns the candidate shards to execute the operation on ornull
the execute the operation locally (the node that received the request)- Specified by:
shards
in classTransportSingleShardAction<GetRequest,
GetResponse>
-
resolveRequest
protected void resolveRequest(ClusterState state, TransportSingleShardAction<GetRequest, GetResponse>.InternalRequest request) - Overrides:
resolveRequest
in classTransportSingleShardAction<GetRequest,
GetResponse>
-
asyncShardOperation
protected void asyncShardOperation(GetRequest request, ShardId shardId, ActionListener<GetResponse> listener) throws IOException - Overrides:
asyncShardOperation
in classTransportSingleShardAction<GetRequest,
GetResponse> - Throws:
IOException
-
shardOperation
- Specified by:
shardOperation
in classTransportSingleShardAction<GetRequest,
GetResponse>
-
getResponseReader
- Specified by:
getResponseReader
in classTransportSingleShardAction<GetRequest,
GetResponse>
-
getExecutor
- Overrides:
getExecutor
in classTransportSingleShardAction<GetRequest,
GetResponse>
-