Package org.elasticsearch.action.get
Class TransportShardMultiGetAction
- java.lang.Object
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.single.shard.TransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
- org.elasticsearch.action.get.TransportShardMultiGetAction
-
public class TransportShardMultiGetAction extends TransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
-
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 TransportShardMultiGetAction(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
getExecutor(MultiGetShardRequest request, ShardId shardId)
protected boolean
isSubAction()
Tells whether the action is a main one or a subaction.protected MultiGetShardResponse
newResponse()
protected boolean
resolveIndex(MultiGetShardRequest request)
protected MultiGetShardResponse
shardOperation(MultiGetShardRequest 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, resolveRequest
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportShardMultiGetAction
@Inject public TransportShardMultiGetAction(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
isSubAction
protected boolean isSubAction()
Description copied from class:TransportSingleShardAction
Tells whether the action is a main one or a subaction. Used to decide whether we need to register the main transport handler. In fact if the action is a subaction, its execute method will be called locally to its parent action.- Overrides:
isSubAction
in classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
newResponse
protected MultiGetShardResponse newResponse()
- Specified by:
newResponse
in classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
resolveIndex
protected boolean resolveIndex(MultiGetShardRequest request)
- Specified by:
resolveIndex
in classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
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<MultiGetShardRequest,MultiGetShardResponse>
-
shardOperation
protected MultiGetShardResponse shardOperation(MultiGetShardRequest request, ShardId shardId)
- Specified by:
shardOperation
in classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
getExecutor
protected java.lang.String getExecutor(MultiGetShardRequest request, ShardId shardId)
- Overrides:
getExecutor
in classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
-