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
  • Constructor Details

  • 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