org.elasticsearch.action.support.single
Class TransportSingleOperationAction<Request extends SingleOperationRequest,Response extends ActionResponse>

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.single.TransportSingleOperationAction<Request,Response>
All Implemented Interfaces:
Action<Request,Response>
Direct Known Subclasses:
TransportGetAction, TransportSinglePingAction

public abstract class TransportSingleOperationAction<Request extends SingleOperationRequest,Response extends ActionResponse>
extends BaseAction<Request,Response>


Nested Class Summary
protected  class TransportSingleOperationAction.ShardSingleOperationRequest
           
 
Field Summary
protected  ClusterService clusterService
           
protected  IndicesService indicesService
           
protected  ThreadPool threadPool
           
protected  TransportService transportService
           
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
protected TransportSingleOperationAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService)
           
 
Method Summary
protected  void checkBlock(Request request, ClusterState state)
           
protected  void doExecute(Request request, ActionListener<Response> listener)
           
protected abstract  Request newRequest()
           
protected abstract  Response newResponse()
           
protected abstract  Response shardOperation(Request request, int shardId)
           
protected abstract  java.lang.String transportAction()
           
protected abstract  java.lang.String transportShardAction()
           
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
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
 

Field Detail

clusterService

protected final ClusterService clusterService

transportService

protected final TransportService transportService

indicesService

protected final IndicesService indicesService

threadPool

protected final ThreadPool threadPool
Constructor Detail

TransportSingleOperationAction

protected TransportSingleOperationAction(Settings settings,
                                         ThreadPool threadPool,
                                         ClusterService clusterService,
                                         TransportService transportService,
                                         IndicesService indicesService)
Method Detail

doExecute

protected void doExecute(Request request,
                         ActionListener<Response> listener)
Specified by:
doExecute in class BaseAction<Request extends SingleOperationRequest,Response extends ActionResponse>

transportAction

protected abstract java.lang.String transportAction()

transportShardAction

protected abstract java.lang.String transportShardAction()

shardOperation

protected abstract Response shardOperation(Request request,
                                           int shardId)
                                                           throws ElasticSearchException
Throws:
ElasticSearchException

newRequest

protected abstract Request newRequest()

newResponse

protected abstract Response newResponse()

checkBlock

protected void checkBlock(Request request,
                          ClusterState state)