Package org.elasticsearch.test
Annotation Type ESIntegTestCase.ClusterScope
-
@Retention(RUNTIME) @Target(TYPE) public static @interface ESIntegTestCase.ClusterScopeDefines a cluster scope for aESIntegTestCasesubclass. By default if noESIntegTestCase.ClusterScopeannotation is presentESIntegTestCase.Scope.SUITEis used together with randomly chosen settings like number of nodes etc.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanautoMinMasterNodesThe cluster automatically manages theElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTINGby default as nodes are started and stopped.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 Detail
-
scope
ESIntegTestCase.Scope scope
Returns the scope.ESIntegTestCase.Scope.SUITEis 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. 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
-
-
-
autoMinMasterNodes
boolean autoMinMasterNodes
The cluster automatically manages theElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTINGby default as nodes are started and stopped. Set this to false to manage the setting manually.- Default:
- true
-
-