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