Class ESIndexLevelReplicationTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.index.shard.IndexShardTestCase
org.elasticsearch.index.replication.ESIndexLevelReplicationTestCase

public abstract class ESIndexLevelReplicationTestCase extends IndexShardTestCase
  • Field Details

    • index

      protected final org.elasticsearch.index.Index index
    • indexMapping

      protected final String indexMapping
      See Also:
  • Constructor Details

    • ESIndexLevelReplicationTestCase

      public ESIndexLevelReplicationTestCase()
  • Method Details

    • createGroup

      protected ESIndexLevelReplicationTestCase.ReplicationGroup createGroup(int replicas) throws IOException
      Throws:
      IOException
    • createGroup

      protected ESIndexLevelReplicationTestCase.ReplicationGroup createGroup(int replicas, org.elasticsearch.common.settings.Settings settings) throws IOException
      Throws:
      IOException
    • buildIndexMetadata

      protected org.elasticsearch.cluster.metadata.IndexMetadata buildIndexMetadata(int replicas) throws IOException
      Throws:
      IOException
    • buildIndexMetadata

      protected org.elasticsearch.cluster.metadata.IndexMetadata buildIndexMetadata(int replicas, String mappings) throws IOException
      Throws:
      IOException
    • buildIndexMetadata

      protected org.elasticsearch.cluster.metadata.IndexMetadata buildIndexMetadata(int replicas, org.elasticsearch.common.settings.Settings indexSettings, String mappings)
    • getDiscoveryNode

      protected org.elasticsearch.cluster.node.DiscoveryNode getDiscoveryNode(String id)
    • indexOnPrimary

      public org.elasticsearch.action.bulk.BulkShardRequest indexOnPrimary(org.elasticsearch.action.index.IndexRequest request, org.elasticsearch.index.shard.IndexShard primary) throws Exception
      indexes the given requests on the supplied primary, modifying it for replicas
      Throws:
      Exception
    • indexOnReplica

      public void indexOnReplica(org.elasticsearch.action.bulk.BulkShardRequest request, ESIndexLevelReplicationTestCase.ReplicationGroup group, org.elasticsearch.index.shard.IndexShard replica) throws Exception
      indexes the given requests on the supplied replica shard
      Throws:
      Exception