Class IoTDBStartCheck


  • public class IoTDBStartCheck
    extends java.lang.Object
    • Method Detail

      • checkConfig

        public void checkConfig()
                         throws org.apache.iotdb.commons.exception.ConfigurationException,
                                java.io.IOException
        check configuration in system.properties when starting IoTDB

        When 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.ConfigurationException
        java.io.IOException
      • serializeDataNodeId

        public void serializeDataNodeId​(int dataNodeId)
                                 throws java.io.IOException
        call 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.IOException
        call 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)