Package org.elasticsearch.action.explain
Class TransportExplainAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- 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, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
logger
-
-
Constructor Summary
Constructors Constructor Description TransportExplainAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected void
doExecute(ExplainRequest request, ActionListener<ExplainResponse> listener)
protected java.lang.String
getExecutor(ExplainRequest request, ShardId shardId)
protected ExplainResponse
newResponse()
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
asyncShardOperation, checkGlobalBlock, checkRequestBlock, isSubAction
-
-
-
-
Constructor Detail
-
TransportExplainAction
@Inject public TransportExplainAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
doExecute
protected void doExecute(ExplainRequest request, ActionListener<ExplainResponse> listener)
- Overrides:
doExecute
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
resolveIndex
protected boolean resolveIndex(ExplainRequest request)
- Specified by:
resolveIndex
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
resolveRequest
protected void resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)
- Overrides:
resolveRequest
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
shardOperation
protected ExplainResponse shardOperation(ExplainRequest request, ShardId shardId) throws java.io.IOException
- Specified by:
shardOperation
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
- Throws:
java.io.IOException
-
newResponse
protected ExplainResponse newResponse()
- Specified by:
newResponse
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
protected java.lang.String getExecutor(ExplainRequest request, ShardId shardId)
- Overrides:
getExecutor
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
-