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 voidasyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener)protected voiddoExecute(Task task, ExplainRequest request, ActionListener<ExplainResponse> listener)protected java.lang.StringgetExecutor(ExplainRequest request, ShardId shardId)protected Writeable.Reader<ExplainResponse>getResponseReader()protected booleanresolveIndex(ExplainRequest request)protected voidresolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)protected ExplainResponseshardOperation(ExplainRequest request, ShardId shardId)protected ShardIteratorshards(ClusterState state, TransportSingleShardAction.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, 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:
doExecutein classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
resolveIndex
protected boolean resolveIndex(ExplainRequest request)
- Specified by:
resolveIndexin classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
resolveRequest
protected void resolveRequest(ClusterState state, TransportSingleShardAction.InternalRequest request)
- Overrides:
resolveRequestin classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
asyncShardOperation
protected void asyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener) throws java.io.IOException
- Overrides:
asyncShardOperationin classTransportSingleShardAction<ExplainRequest,ExplainResponse>- Throws:
java.io.IOException
-
shardOperation
protected ExplainResponse shardOperation(ExplainRequest request, ShardId shardId) throws java.io.IOException
- Specified by:
shardOperationin classTransportSingleShardAction<ExplainRequest,ExplainResponse>- Throws:
java.io.IOException
-
getResponseReader
protected Writeable.Reader<ExplainResponse> getResponseReader()
- Specified by:
getResponseReaderin classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
shards
protected ShardIterator shards(ClusterState state, TransportSingleShardAction.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
protected java.lang.String getExecutor(ExplainRequest request, ShardId shardId)
- Overrides:
getExecutorin classTransportSingleShardAction<ExplainRequest,ExplainResponse>
-
-