org.elasticsearch.action.explain
Class TransportExplainAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.TransportAction<Request,Response>
          extended by org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>
              extended by org.elasticsearch.action.explain.TransportExplainAction

public class TransportExplainAction
extends TransportShardSingleOperationAction<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.TransportShardSingleOperationAction
TransportShardSingleOperationAction.ShardSingleOperationRequest
 
Field Summary
 
Fields inherited from class org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction
clusterService, transportService
 
Fields inherited from class org.elasticsearch.action.support.TransportAction
threadPool
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportExplainAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ScriptService scriptService)
           
 
Method Summary
protected  ClusterBlockException checkGlobalBlock(ClusterState state, ExplainRequest request)
           
protected  ClusterBlockException checkRequestBlock(ClusterState state, ExplainRequest request)
           
protected  String executor()
           
protected  ExplainRequest newRequest()
           
protected  ExplainResponse newResponse()
           
protected  void resolveRequest(ClusterState state, ExplainRequest request)
           
protected  ExplainResponse shardOperation(ExplainRequest request, int shardId)
           
protected  ShardIterator shards(ClusterState state, ExplainRequest request)
           
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.single.shard.TransportShardSingleOperationAction
doExecute
 
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportExplainAction

@Inject
public TransportExplainAction(Settings settings,
                                     ThreadPool threadPool,
                                     ClusterService clusterService,
                                     TransportService transportService,
                                     IndicesService indicesService,
                                     ScriptService scriptService)
Method Detail

transportAction

protected String transportAction()
Specified by:
transportAction in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>

executor

protected String executor()
Specified by:
executor in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>

resolveRequest

protected void resolveRequest(ClusterState state,
                              ExplainRequest request)
Overrides:
resolveRequest in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>

shardOperation

protected ExplainResponse shardOperation(ExplainRequest request,
                                         int shardId)
                                  throws ElasticSearchException
Specified by:
shardOperation in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>
Throws:
ElasticSearchException

newRequest

protected ExplainRequest newRequest()
Specified by:
newRequest in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>

newResponse

protected ExplainResponse newResponse()
Specified by:
newResponse in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>

checkGlobalBlock

protected ClusterBlockException checkGlobalBlock(ClusterState state,
                                                 ExplainRequest request)
Specified by:
checkGlobalBlock in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>

checkRequestBlock

protected ClusterBlockException checkRequestBlock(ClusterState state,
                                                  ExplainRequest request)
Specified by:
checkRequestBlock in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>

shards

protected ShardIterator shards(ClusterState state,
                               ExplainRequest request)
                        throws ElasticSearchException
Specified by:
shards in class TransportShardSingleOperationAction<ExplainRequest,ExplainResponse>
Throws:
ElasticSearchException


Copyright © 2009-2012. All Rights Reserved.