java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.action.support.BaseAction<Request,Response>
org.elasticsearch.action.support.replication.TransportIndexReplicationOperationAction<Request,Response,ShardRequest,ShardResponse>
- All Implemented Interfaces:
- Action<Request,Response>
- Direct Known Subclasses:
- TransportIndexDeleteAction, TransportIndexDeleteByQueryAction, TransportIndexReplicationPingAction
public abstract class TransportIndexReplicationOperationAction<Request extends IndexReplicationOperationRequest,Response extends ActionResponse,ShardRequest extends ShardReplicationOperationRequest,ShardResponse extends ActionResponse>
- extends BaseAction<Request,Response>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
threadPool
protected final ThreadPool threadPool
clusterService
protected final ClusterService clusterService
shardAction
protected final TransportShardReplicationOperationAction<ShardRequest extends ShardReplicationOperationRequest,ShardResponse extends ActionResponse> shardAction
TransportIndexReplicationOperationAction
@Inject
public TransportIndexReplicationOperationAction(Settings settings,
TransportService transportService,
ClusterService clusterService,
ThreadPool threadPool,
TransportShardReplicationOperationAction<ShardRequest,ShardResponse> shardAction)
doExecute
protected void doExecute(Request request,
ActionListener<Response> listener)
- Specified by:
doExecute
in class BaseAction<Request extends IndexReplicationOperationRequest,Response extends ActionResponse>
newRequestInstance
protected abstract Request newRequestInstance()
newResponseInstance
protected abstract Response newResponseInstance(Request request,
java.util.concurrent.atomic.AtomicReferenceArray shardsResponses)
transportAction
protected abstract java.lang.String transportAction()
shards
protected abstract GroupShardsIterator shards(Request request)
throws ElasticSearchException
- Throws:
ElasticSearchException
newShardRequestInstance
protected abstract ShardRequest newShardRequestInstance(Request request,
int shardId)
accumulateExceptions
protected abstract boolean accumulateExceptions()
checkBlock
protected void checkBlock(Request request,
ClusterState state)