Package org.elasticsearch.action.explain
Class TransportExplainAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
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
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, localConnection, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportExplainAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
asyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener)
protected void
doExecute(Task task, ExplainRequest request, ActionListener<ExplainResponse> listener)
protected String
getExecutor(ExplainRequest request, ShardId shardId)
protected Writeable.Reader<ExplainResponse>
protected boolean
resolveIndex(ExplainRequest request)
protected void
resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)
protected ExplainResponse
shardOperation(ExplainRequest 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
checkGlobalBlock, checkRequestBlock, isSubAction
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
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:
doExecute
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
resolveIndex
- Specified by:
resolveIndex
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
resolveRequest
protected void resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)- Overrides:
resolveRequest
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
asyncShardOperation
protected void asyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener) throws IOException- Overrides:
asyncShardOperation
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
- Throws:
IOException
-
shardOperation
protected ExplainResponse shardOperation(ExplainRequest request, ShardId shardId) throws IOException- Specified by:
shardOperation
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
- Throws:
IOException
-
getResponseReader
- Specified by:
getResponseReader
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
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<ExplainRequest,ExplainResponse>
-
getExecutor
- Overrides:
getExecutor
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-