org.elasticsearch.action.support.replication
Class TransportIndicesReplicationOperationAction<Request extends IndicesReplicationOperationRequest,Response extends ActionResponse,IndexRequest extends IndexReplicationOperationRequest,IndexResponse extends ActionResponse,ShardRequest extends ShardReplicationOperationRequest,ShardResponse 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.replication.TransportIndicesReplicationOperationAction<Request,Response,IndexRequest,IndexResponse,ShardRequest,ShardResponse>
All Implemented Interfaces:
Action<Request,Response>
Direct Known Subclasses:
TransportDeleteByQueryAction, TransportReplicationPingAction

public abstract class TransportIndicesReplicationOperationAction<Request extends IndicesReplicationOperationRequest,Response extends ActionResponse,IndexRequest extends IndexReplicationOperationRequest,IndexResponse extends ActionResponse,ShardRequest extends ShardReplicationOperationRequest,ShardResponse extends ActionResponse>
extends BaseAction<Request,Response>


Field Summary
protected  ClusterService clusterService
           
protected  TransportIndexReplicationOperationAction<IndexRequest,IndexResponse,ShardRequest,ShardResponse> indexAction
           
protected  ThreadPool threadPool
           
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportIndicesReplicationOperationAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, TransportIndexReplicationOperationAction<IndexRequest,IndexResponse,ShardRequest,ShardResponse> indexAction)
           
 
Method Summary
protected abstract  boolean accumulateExceptions()
           
protected  void checkBlock(Request request, ClusterState state)
           
protected  void doExecute(Request request, ActionListener<Response> listener)
           
protected abstract  IndexRequest newIndexRequestInstance(Request request, java.lang.String index)
           
protected abstract  Request newRequestInstance()
           
protected abstract  Response newResponseInstance(Request request, java.util.concurrent.atomic.AtomicReferenceArray indexResponses)
           
protected abstract  java.lang.String transportAction()
           
 
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

threadPool

protected final ThreadPool threadPool

clusterService

protected final ClusterService clusterService

indexAction

protected final TransportIndexReplicationOperationAction<IndexRequest extends IndexReplicationOperationRequest,IndexResponse extends ActionResponse,ShardRequest extends ShardReplicationOperationRequest,ShardResponse extends ActionResponse> indexAction
Constructor Detail

TransportIndicesReplicationOperationAction

@Inject
public TransportIndicesReplicationOperationAction(Settings settings,
                                                         TransportService transportService,
                                                         ClusterService clusterService,
                                                         ThreadPool threadPool,
                                                         TransportIndexReplicationOperationAction<IndexRequest,IndexResponse,ShardRequest,ShardResponse> indexAction)
Method Detail

doExecute

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

newRequestInstance

protected abstract Request newRequestInstance()

newResponseInstance

protected abstract Response newResponseInstance(Request request,
                                                java.util.concurrent.atomic.AtomicReferenceArray indexResponses)

transportAction

protected abstract java.lang.String transportAction()

newIndexRequestInstance

protected abstract IndexRequest newIndexRequestInstance(Request request,
                                                        java.lang.String index)

accumulateExceptions

protected abstract boolean accumulateExceptions()

checkBlock

protected void checkBlock(Request request,
                          ClusterState state)