Package org.elasticsearch.test
Annotation Type ESIntegTestCase.ClusterScope
@Retention(RUNTIME)
@Target(TYPE)
public static @interface ESIntegTestCase.ClusterScope
Defines a cluster scope for a
ESIntegTestCase subclass.
By default if no ESIntegTestCase.ClusterScope annotation is present ESIntegTestCase.Scope.SUITE is used
together with randomly chosen settings like number of nodes etc.-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanautoManageMasterNodesIndicates whether the cluster automatically manages cluster bootstrapping and the removal of any master-eligible nodes as well asElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTINGif running the pre-7.0 cluster coordination implementation.intmaxNumDataNodesReturns the maximum number of data nodes in the cluster.intminNumDataNodesReturns the minimum number of data nodes in the cluster.intnumClientNodesReturns the number of client nodes in the cluster.intnumDataNodesReturns the number of nodes in the cluster.ESIntegTestCase.ScopescopeReturns the scope.booleansupportsDedicatedMastersIndicates whether the cluster can have dedicated master nodes.doubletransportClientRatioReturns the transport client ratio.
-
Element Details
-
scope
ESIntegTestCase.Scope scopeReturns the scope.ESIntegTestCase.Scope.SUITEis default.- Default:
- SUITE
-
numDataNodes
int numDataNodesReturns the number of nodes in the cluster. Default is-1which 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 minNumDataNodesReturns the minimum number of data nodes in the cluster. Default is-1. Ignored whennumDataNodes()is set.- Default:
- -1
-
maxNumDataNodes
int maxNumDataNodesReturns the maximum number of data nodes in the cluster. Default is-1. Ignored whennumDataNodes()is set.- Default:
- -1
-
supportsDedicatedMasters
boolean supportsDedicatedMastersIndicates whether the cluster can have dedicated master nodes. Iffalsemeans data nodes will serve as master nodes and there will be no dedicated master (and data) nodes. Default isfalsewhich means dedicated master nodes will be randomly used.- Default:
- true
-
autoManageMasterNodes
boolean autoManageMasterNodesIndicates whether the cluster automatically manages cluster bootstrapping and the removal of any master-eligible nodes as well asElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTINGif running the pre-7.0 cluster coordination implementation. If set tofalsethen the tests must manage these things explicitly.- Default:
- true
-
numClientNodes
int numClientNodesReturns the number of client nodes in the cluster. Default isInternalTestCluster.DEFAULT_NUM_CLIENT_NODES, a negative value means that the number of client nodes will be randomized.- Default:
- -1
-
transportClientRatio
double transportClientRatioReturns the transport client ratio. By default this returns-1which means a random ratio in the interval[0..1]is used.- Default:
- -1.0
-