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, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportGetAction(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ExecutorSelector executorSelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidasyncShardOperation(GetRequest request, ShardId shardId, ActionListener<GetResponse> listener)protected StringgetExecutor(GetRequest request, ShardId shardId)protected Writeable.Reader<GetResponse>protected booleanresolveIndex(GetRequest request)protected voidresolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)protected GetResponseshardOperation(GetRequest request, ShardId shardId)protected ShardIteratorshards(ClusterState state, TransportSingleShardAction.InternalRequest request)Returns the candidate shards to execute the operation on ornullthe execute the operation locally (the node that received the request)Methods inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
checkGlobalBlock, checkRequestBlock, doExecute, isSubActionMethods 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:
resolveIndexin classTransportSingleShardAction<GetRequest,GetResponse>
-
shards
protected ShardIterator shards(ClusterState state, TransportSingleShardAction.InternalRequest request)Description copied from class:TransportSingleShardActionReturns the candidate shards to execute the operation on ornullthe execute the operation locally (the node that received the request)- Specified by:
shardsin classTransportSingleShardAction<GetRequest,GetResponse>
-
resolveRequest
protected void resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)- Overrides:
resolveRequestin classTransportSingleShardAction<GetRequest,GetResponse>
-
asyncShardOperation
protected void asyncShardOperation(GetRequest request, ShardId shardId, ActionListener<GetResponse> listener) throws IOException- Overrides:
asyncShardOperationin classTransportSingleShardAction<GetRequest,GetResponse>- Throws:
IOException
-
shardOperation
- Specified by:
shardOperationin classTransportSingleShardAction<GetRequest,GetResponse>
-
getResponseReader
- Specified by:
getResponseReaderin classTransportSingleShardAction<GetRequest,GetResponse>
-
getExecutor
- Overrides:
getExecutorin classTransportSingleShardAction<GetRequest,GetResponse>
-