Class ESIndexLevelReplicationTestCase.ReplicationAction<Request extends ReplicationRequest<Request>,ReplicaRequest extends ReplicationRequest<ReplicaRequest>,Response extends ReplicationResponse>
java.lang.Object
org.elasticsearch.index.replication.ESIndexLevelReplicationTestCase.ReplicationAction<Request,ReplicaRequest,Response>
- Enclosing class:
- ESIndexLevelReplicationTestCase
protected abstract class ESIndexLevelReplicationTestCase.ReplicationAction<Request extends ReplicationRequest<Request>,ReplicaRequest extends ReplicationRequest<ReplicaRequest>,Response extends ReplicationResponse>
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ESIndexLevelReplicationTestCase.ReplicationAction.PrimaryResult
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReplicationAction(Request request, ActionListener<Response> listener, ESIndexLevelReplicationTestCase.ReplicationGroup group, java.lang.String opType)
-
Method Summary
Modifier and Type Method Description protected void
adaptResponse(Response response, IndexShard indexShard)
void
execute()
protected IndexShard
getPrimaryShard()
protected abstract void
performOnPrimary(IndexShard primary, Request request, ActionListener<ESIndexLevelReplicationTestCase.ReplicationAction.PrimaryResult> listener)
protected abstract void
performOnReplica(ReplicaRequest request, IndexShard replica)
-
Constructor Details
-
ReplicationAction
protected ReplicationAction(Request request, ActionListener<Response> listener, ESIndexLevelReplicationTestCase.ReplicationGroup group, java.lang.String opType)
-
-
Method Details
-
execute
public void execute() -
adaptResponse
-
getPrimaryShard
-
performOnPrimary
protected abstract void performOnPrimary(IndexShard primary, Request request, ActionListener<ESIndexLevelReplicationTestCase.ReplicationAction.PrimaryResult> listener) -
performOnReplica
protected abstract void performOnReplica(ReplicaRequest request, IndexShard replica) throws java.lang.Exception- Throws:
java.lang.Exception
-