Package org.elasticsearch.action.get
Class TransportGetAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.single.shard.TransportSingleShardAction<GetRequest,GetResponse>
-
- org.elasticsearch.action.get.TransportGetAction
-
public class TransportGetAction extends TransportSingleShardAction<GetRequest,GetResponse>
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, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
logger
-
-
Constructor Summary
Constructors Constructor Description TransportGetAction(Settings settings, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getExecutor(GetRequest request, ShardId shardId)
protected GetResponse
newResponse()
protected boolean
resolveIndex(GetRequest request)
protected void
resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)
protected GetResponse
shardOperation(GetRequest request, ShardId shardId)
protected ShardIterator
shards(ClusterState state, TransportSingleShardAction.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
asyncShardOperation, checkGlobalBlock, checkRequestBlock, doExecute, isSubAction
-
-
-
-
Constructor Detail
-
TransportGetAction
@Inject public TransportGetAction(Settings settings, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
resolveIndex
protected boolean resolveIndex(GetRequest request)
- Specified by:
resolveIndex
in classTransportSingleShardAction<GetRequest,GetResponse>
-
shards
protected ShardIterator shards(ClusterState state, TransportSingleShardAction.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.InternalRequest request)
- Overrides:
resolveRequest
in classTransportSingleShardAction<GetRequest,GetResponse>
-
shardOperation
protected GetResponse shardOperation(GetRequest request, ShardId shardId)
- Specified by:
shardOperation
in classTransportSingleShardAction<GetRequest,GetResponse>
-
newResponse
protected GetResponse newResponse()
- Specified by:
newResponse
in classTransportSingleShardAction<GetRequest,GetResponse>
-
getExecutor
protected java.lang.String getExecutor(GetRequest request, ShardId shardId)
- Overrides:
getExecutor
in classTransportSingleShardAction<GetRequest,GetResponse>
-
-