Class MultiClusterEnv
java.lang.Object
org.apache.iotdb.it.env.cluster.env.AbstractEnv
org.apache.iotdb.it.env.cluster.env.MultiClusterEnv
- All Implemented Interfaces:
BaseEnv
-
Field Summary
Fields inherited from class org.apache.iotdb.it.env.cluster.env.AbstractEnv
aiNodeWrapperList, configNodeWrapperList, dataNodeWrapperList, index, retryCount, startTime, testMethodName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInit a cluster with default number of ConfigNodes and DataNodes.voidinitClusterEnvironment(int configNodesNum, int dataNodesNum) Init a cluster with the specified number of ConfigNodes and DataNodes.voidinitClusterEnvironment(int configNodesNum, int dataNodesNum, int testWorkingRetryCount) Init a cluster with the specified number of ConfigNodes and DataNodes.Methods inherited from class org.apache.iotdb.it.env.cluster.env.AbstractEnv
checkClusterStatus, checkClusterStatusOneUnknownOtherRunning, checkClusterStatusWithoutUnknown, checkNodeInStatus, cleanClusterEnvironment, dataNodeIdToWrapper, dumpTestJVMSnapshot, ensureNodeStatus, generateRandomConfigNodeWrapper, generateRandomDataNodeWrapper, getConfig, getConfigNodeConnection, getConfigNodeWrapper, getConfigNodeWrapperList, getConnection, getConnection, getConnection, getConnectionWithSpecifiedDataNode, getDataNodeWrapper, getDataNodeWrapperList, getFirstLeaderSchemaRegionDataNodeIndex, getIP, getLeaderConfigNodeConnection, getLeaderConfigNodeIndex, getLibPath, getMetricPrometheusReporterContents, getMqttPort, getNodeWrapperList, getPort, getReadConnections, getReadConnections, getSbinPath, getSessionConnection, getSessionConnection, getSessionConnection, getSessionConnection, getSessionPool, getTestClassName, getTestMethodName, getToolsPath, getWriteConnection, getWriteConnectionFromDataNodeList, getWriteConnectionWithSpecifiedDataNode, getWriteOnlyConnectionWithSpecifiedDataNode, initEnvironment, initEnvironment, initEnvironment, registerConfigNodeKillPoints, registerDataNodeKillPoints, registerNewConfigNode, registerNewConfigNode, registerNewDataNode, registerNewDataNode, setTestMethodName, shutdownAllConfigNodes, shutdownAllDataNodes, shutdownConfigNode, shutdownDataNode, shutdownForciblyAllConfigNodes, shutdownForciblyAllDataNodes, startAllConfigNodes, startAllDataNodes, startConfigNode, startDataNode, testJDBCConnectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iotdb.itbase.env.BaseEnv
getConnection, getConnection, getConnectionWithSpecifiedDataNode, getUrlContent, getWriteOnlyConnectionWithSpecifiedDataNode
-
Constructor Details
-
MultiClusterEnv
-
-
Method Details
-
initClusterEnvironment
public void initClusterEnvironment()Description copied from interface:BaseEnvInit a cluster with default number of ConfigNodes and DataNodes. -
initClusterEnvironment
public void initClusterEnvironment(int configNodesNum, int dataNodesNum) Description copied from interface:BaseEnvInit a cluster with the specified number of ConfigNodes and DataNodes.- Parameters:
configNodesNum- the number of ConfigNodes.dataNodesNum- the number of DataNodes.
-
initClusterEnvironment
public void initClusterEnvironment(int configNodesNum, int dataNodesNum, int testWorkingRetryCount) Description copied from interface:BaseEnvInit a cluster with the specified number of ConfigNodes and DataNodes.- Parameters:
configNodesNum- the number of ConfigNodes.dataNodesNum- the number of DataNodes.testWorkingRetryCount- the retry count when testing the availability of cluster
-