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, logger, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportExplainAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected void
asyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener)
protected void
doExecute(Task task, ExplainRequest request, ActionListener<ExplainResponse> listener)
protected java.lang.String
getExecutor(ExplainRequest request, ShardId shardId)
protected Writeable.Reader<ExplainResponse>
getResponseReader()
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 Detail
-
TransportExplainAction
@Inject public TransportExplainAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
doExecute
protected void doExecute(Task task, 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>
-
asyncShardOperation
protected void asyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener) throws java.io.IOException
- Overrides:
asyncShardOperation
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
- Throws:
java.io.IOException
-
shardOperation
protected ExplainResponse shardOperation(ExplainRequest request, ShardId shardId) throws java.io.IOException
- Specified by:
shardOperation
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
- Throws:
java.io.IOException
-
getResponseReader
protected Writeable.Reader<ExplainResponse> 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
protected java.lang.String getExecutor(ExplainRequest request, ShardId shardId)
- Overrides:
getExecutor
in classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
-