Module org.elasticsearch.server
Class TransportShardMultiTermsVectorAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse>
org.elasticsearch.action.support.single.shard.TransportSingleShardAction<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse>
org.elasticsearch.action.termvectors.TransportShardMultiTermsVectorAction
public class TransportShardMultiTermsVectorAction
extends TransportSingleShardAction<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
TransportSingleShardAction.InternalRequest -
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
clusterService, indexNameExpressionResolver, projectResolver, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportShardMultiTermsVectorAction(ClusterService clusterService, NodeClient client, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, ProjectResolver projectResolver, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidasyncShardOperation(MultiTermVectorsShardRequest request, ShardId shardId, ActionListener<MultiTermVectorsShardResponse> listener) protected Writeable.Reader<MultiTermVectorsShardResponse> protected booleanTells whether the action is a main one or a subaction.protected booleanresolveIndex(MultiTermVectorsShardRequest request) protected MultiTermVectorsShardResponseshardOperation(MultiTermVectorsShardRequest request, ShardId shardId) protected ShardIteratorshards(ProjectState project, TransportSingleShardAction<MultiTermVectorsShardRequest, MultiTermVectorsShardResponse>.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, getExecutor, getProjectState, resolveRequestMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportShardMultiTermsVectorAction
@Inject public TransportShardMultiTermsVectorAction(ClusterService clusterService, NodeClient client, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, ProjectResolver projectResolver, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
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<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse>
-
getResponseReader
- Specified by:
getResponseReaderin classTransportSingleShardAction<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse>
-
resolveIndex
- Specified by:
resolveIndexin classTransportSingleShardAction<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse>
-
shards
protected ShardIterator shards(ProjectState project, TransportSingleShardAction<MultiTermVectorsShardRequest, MultiTermVectorsShardResponse>.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<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse>
-
asyncShardOperation
protected void asyncShardOperation(MultiTermVectorsShardRequest request, ShardId shardId, ActionListener<MultiTermVectorsShardResponse> listener) throws IOException - Overrides:
asyncShardOperationin classTransportSingleShardAction<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse> - Throws:
IOException
-
shardOperation
protected MultiTermVectorsShardResponse shardOperation(MultiTermVectorsShardRequest request, ShardId shardId) - Specified by:
shardOperationin classTransportSingleShardAction<MultiTermVectorsShardRequest,MultiTermVectorsShardResponse>
-