Package org.apache.iotdb.db.conf
Class IoTDBStartCheck
- java.lang.Object
-
- org.apache.iotdb.db.conf.IoTDBStartCheck
-
public class IoTDBStartCheck extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckConfig()check configuration in system.properties when starting IoTDBbooleancheckConsensusProtocolExists(org.apache.iotdb.common.rpc.thrift.TConsensusGroupType type)static IoTDBStartCheckgetInstance()voidserializeConsensusProtocol(java.lang.String regionConsensusProtocol, org.apache.iotdb.common.rpc.thrift.TConsensusGroupType type)call this method to serialize consensus protocolvoidserializeDataNodeId(int dataNodeId)call this method to serialize DataNodeIdvoidserializeGlobalConfig(org.apache.iotdb.confignode.rpc.thrift.TGlobalConfig globalConfig)
-
-
-
Method Detail
-
getInstance
public static IoTDBStartCheck getInstance()
-
checkConfig
public void checkConfig() throws org.apache.iotdb.commons.exception.ConfigurationException, java.io.IOExceptioncheck configuration in system.properties when starting IoTDBWhen init: create system.properties directly
When upgrading the system.properties: (1) create system.properties.tmp (2) delete system.properties (3) rename system.properties.tmp to system.properties
- Throws:
org.apache.iotdb.commons.exception.ConfigurationExceptionjava.io.IOException
-
serializeDataNodeId
public void serializeDataNodeId(int dataNodeId) throws java.io.IOExceptioncall this method to serialize DataNodeId- Throws:
java.io.IOException
-
serializeConsensusProtocol
public void serializeConsensusProtocol(java.lang.String regionConsensusProtocol, org.apache.iotdb.common.rpc.thrift.TConsensusGroupType type) throws java.io.IOExceptioncall this method to serialize consensus protocol- Throws:
java.io.IOException
-
serializeGlobalConfig
public void serializeGlobalConfig(org.apache.iotdb.confignode.rpc.thrift.TGlobalConfig globalConfig) throws java.io.IOException- Throws:
java.io.IOException
-
checkConsensusProtocolExists
public boolean checkConsensusProtocolExists(org.apache.iotdb.common.rpc.thrift.TConsensusGroupType type)
-
-