Annotation Interface OpenSearchIntegTestCase.ClusterScope

Enclosing class:
OpenSearchIntegTestCase

@Retention(RUNTIME) @Target(TYPE) public static @interface OpenSearchIntegTestCase.ClusterScope
Defines a cluster scope for a OpenSearchIntegTestCase subclass. By default if no OpenSearchIntegTestCase.ClusterScope annotation is present OpenSearchIntegTestCase.Scope.SUITE is used together with randomly chosen settings like number of nodes etc.
  • Element Details

    • scope

      Returns the scope. OpenSearchIntegTestCase.Scope.SUITE is default.
      Default:
      SUITE
    • numDataNodes

      int numDataNodes
      Returns the number of nodes in the cluster. Default is -1 which means a random number of nodes is used, where the minimum and maximum number of nodes are either the specified ones or the default ones if not specified.
      Default:
      -1
    • minNumDataNodes

      int minNumDataNodes
      Returns the minimum number of data nodes in the cluster. Default is -1. Ignored when numDataNodes() is set.
      Default:
      -1
    • maxNumDataNodes

      int maxNumDataNodes
      Returns the maximum number of data nodes in the cluster. Default is -1. Ignored when numDataNodes() is set.
      Default:
      -1
    • supportsDedicatedMasters

      boolean supportsDedicatedMasters
      Indicates whether the cluster can have dedicated cluster-manager nodes. If false means data nodes will serve as cluster-manager nodes and there will be no dedicated cluster-manager (and data) nodes. Default is false which means dedicated cluster-manager nodes will be randomly used.
      Default:
      true
    • autoManageMasterNodes

      boolean autoManageMasterNodes
      Indicates whether the cluster automatically manages cluster bootstrapping. If set to false then the tests must manage these things explicitly.
      Default:
      true
    • numClientNodes

      int numClientNodes
      Returns the number of client nodes in the cluster. Default is InternalTestCluster.DEFAULT_NUM_CLIENT_NODES, a negative value means that the number of client nodes will be randomized.
      Default:
      -1