Package org.elasticsearch.action.get
Class TransportShardMultiGetAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- 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.common.component.AbstractComponent
deprecationLogger, logger, settings
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
clusterService, transportService
-
-
Constructor Summary
Constructors Constructor Description TransportShardMultiGetAction(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 booleanisSubAction()Tells whether the action is a main one or a subaction.protected MultiGetShardResponsenewResponse()protected booleanresolveIndex(MultiGetShardRequest request)protected MultiGetShardResponseshardOperation(MultiGetShardRequest 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.common.component.AbstractComponent
logDeprecatedSetting, logRemovedSetting, nodeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
doExecute, execute, execute, execute, execute
-
Methods inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
checkGlobalBlock, checkRequestBlock, doExecute, resolveRequest
-
-
-
-
Constructor Detail
-
TransportShardMultiGetAction
@Inject public TransportShardMultiGetAction(Settings settings, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
isSubAction
protected boolean isSubAction()
Description copied from class:TransportSingleShardActionTells 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:
isSubActionin classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
newResponse
protected MultiGetShardResponse newResponse()
- Specified by:
newResponsein classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
resolveIndex
protected boolean resolveIndex(MultiGetShardRequest request)
- Specified by:
resolveIndexin classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
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<MultiGetShardRequest,MultiGetShardResponse>
-
shardOperation
protected MultiGetShardResponse shardOperation(MultiGetShardRequest request, ShardId shardId)
- Specified by:
shardOperationin classTransportSingleShardAction<MultiGetShardRequest,MultiGetShardResponse>
-
-