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
-
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, indexNameExpressionResolver, threadPool, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportGetAction(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected voidasyncShardOperation(GetRequest request, ShardId shardId, ActionListener<GetResponse> listener)protected java.lang.StringgetExecutor(GetRequest request, ShardId shardId)protected Writeable.Reader<GetResponse>getResponseReader()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, isSubAction
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportGetAction
@Inject public TransportGetAction(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
resolveIndex
protected boolean resolveIndex(GetRequest request)
- 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 java.io.IOException
- Overrides:
asyncShardOperationin classTransportSingleShardAction<GetRequest,GetResponse>- Throws:
java.io.IOException
-
shardOperation
protected GetResponse shardOperation(GetRequest request, ShardId shardId)
- Specified by:
shardOperationin classTransportSingleShardAction<GetRequest,GetResponse>
-
getResponseReader
protected Writeable.Reader<GetResponse> getResponseReader()
- Specified by:
getResponseReaderin classTransportSingleShardAction<GetRequest,GetResponse>
-
getExecutor
protected java.lang.String getExecutor(GetRequest request, ShardId shardId)
- Overrides:
getExecutorin classTransportSingleShardAction<GetRequest,GetResponse>
-
-