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