Package org.elasticsearch.test
Annotation Type ESIntegTestCase.ClusterScope
-
@Retention(RUNTIME) @Target(TYPE) public static @interface ESIntegTestCase.ClusterScope
Defines a cluster scope for aESIntegTestCase
subclass. By default if noESIntegTestCase.ClusterScope
annotation is presentESIntegTestCase.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 boolean
autoMinMasterNodes
The cluster automatically manages theElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTING
by default as nodes are started and stopped.int
maxNumDataNodes
Returns the maximum number of data nodes in the cluster.int
minNumDataNodes
Returns the minimum number of data nodes in the cluster.int
numClientNodes
Returns the number of client nodes in the cluster.int
numDataNodes
Returns the number of nodes in the cluster.ESIntegTestCase.Scope
scope
Returns the scope.boolean
supportsDedicatedMasters
Indicates whether the cluster can have dedicated master nodes.double
transportClientRatio
Returns the transport client ratio.
-
-
-
Element Detail
-
scope
ESIntegTestCase.Scope scope
Returns the scope.ESIntegTestCase.Scope.SUITE
is default.- Default:
- org.elasticsearch.test.ESIntegTestCase.Scope.SUITE
-
-
-
minNumDataNodes
int minNumDataNodes
Returns the minimum number of data nodes in the cluster. Default is-1
. Ignored whennumDataNodes()
is set.- Default:
- -1
-
-
-
maxNumDataNodes
int maxNumDataNodes
Returns the maximum number of data nodes in the cluster. Default is-1
. Ignored whennumDataNodes()
is set.- Default:
- -1
-
-
-
supportsDedicatedMasters
boolean supportsDedicatedMasters
Indicates whether the cluster can have dedicated master nodes. Iffalse
means data nodes will serve as master nodes and there will be no dedicated master (and data) nodes. Default isfalse
which means dedicated master nodes will be randomly used.- Default:
- true
-
-
-
autoMinMasterNodes
boolean autoMinMasterNodes
The cluster automatically manages theElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTING
by default as nodes are started and stopped. Set this to false to manage the setting manually.- Default:
- true
-
-
-
numClientNodes
int numClientNodes
Returns 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
-
-