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 java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classESIndexLevelReplicationTestCase.ReplicationAction.PrimaryResult -
Constructor Summary
Constructors Modifier Constructor Description protectedReplicationAction(Request request, org.elasticsearch.action.ActionListener<Response> listener, ESIndexLevelReplicationTestCase.ReplicationGroup group, java.lang.String opType) -
Method Summary
Modifier and Type Method Description protected voidadaptResponse(Response response, org.elasticsearch.index.shard.IndexShard indexShard)voidexecute()protected org.elasticsearch.index.shard.IndexShardgetPrimaryShard()protected abstract voidperformOnPrimary(org.elasticsearch.index.shard.IndexShard primary, Request request, org.elasticsearch.action.ActionListener<ESIndexLevelReplicationTestCase.ReplicationAction.PrimaryResult> listener)protected abstract voidperformOnReplica(ReplicaRequest request, org.elasticsearch.index.shard.IndexShard replica)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ReplicationAction
protected ReplicationAction(Request request, org.elasticsearch.action.ActionListener<Response> listener, ESIndexLevelReplicationTestCase.ReplicationGroup group, java.lang.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 java.lang.Exception- Throws:
java.lang.Exception
-