Module org.elasticsearch.server
Package org.elasticsearch.action.explain
Class TransportExplainAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<ExplainRequest,ExplainResponse>
org.elasticsearch.action.support.single.shard.TransportSingleShardAction<ExplainRequest,ExplainResponse>
org.elasticsearch.action.explain.TransportExplainAction
public class TransportExplainAction
extends TransportSingleShardAction<ExplainRequest,ExplainResponse>
Explain transport action. Computes the explain on the targeted shard.
-
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, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportExplainAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidasyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener) protected voiddoExecute(Task task, ExplainRequest request, ActionListener<ExplainResponse> listener) protected ExecutorgetExecutor(ExplainRequest request, ShardId shardId) protected Writeable.Reader<ExplainResponse> protected booleanresolveIndex(ExplainRequest request) protected voidresolveRequest(ClusterState state, TransportSingleShardAction<ExplainRequest, ExplainResponse>.InternalRequest request) protected ExplainResponseshardOperation(ExplainRequest request, ShardId shardId) protected ShardIteratorshards(ClusterState state, TransportSingleShardAction<ExplainRequest, ExplainResponse>.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, isSubActionMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportExplainAction
@Inject public TransportExplainAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, ExplainRequest request, ActionListener<ExplainResponse> listener) - Overrides:
doExecutein classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
resolveIndex
- Specified by:
resolveIndexin classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
resolveRequest
protected void resolveRequest(ClusterState state, TransportSingleShardAction<ExplainRequest, ExplainResponse>.InternalRequest request) - Overrides:
resolveRequestin classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
asyncShardOperation
protected void asyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener) throws IOException - Overrides:
asyncShardOperationin classTransportSingleShardAction<ExplainRequest,ExplainResponse> - Throws:
IOException
-
shardOperation
protected ExplainResponse shardOperation(ExplainRequest request, ShardId shardId) throws IOException - Specified by:
shardOperationin classTransportSingleShardAction<ExplainRequest,ExplainResponse> - Throws:
IOException
-
getResponseReader
- Specified by:
getResponseReaderin classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
shards
protected ShardIterator shards(ClusterState state, TransportSingleShardAction<ExplainRequest, ExplainResponse>.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<ExplainRequest,ExplainResponse>
-
getExecutor
- Overrides:
getExecutorin classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-