类 ClusterNodeStartUtils


  • public class ClusterNodeStartUtils
    extends java.lang.Object
    Startup check utils before register/restart a ConfigNode/DataNode
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static java.util.List<org.apache.iotdb.common.rpc.thrift.TEndPoint> checkConflictTEndPointForNewConfigNode​(org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation newConfigNodeLocation, java.util.List<org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation> registeredConfigNodes)
      Check if there exist conflict TEndPoints on the ConfigNode to be registered
      static java.util.List<org.apache.iotdb.common.rpc.thrift.TEndPoint> checkConflictTEndPointForNewDataNode​(org.apache.iotdb.common.rpc.thrift.TDataNodeLocation newDataNodeLocation, java.util.List<org.apache.iotdb.common.rpc.thrift.TDataNodeConfiguration> registeredDataNodes)
      Check if there exist conflict TEndPoints on the DataNode to be registered
      static org.apache.iotdb.common.rpc.thrift.TSStatus confirmNodeRegistration​(org.apache.iotdb.commons.cluster.NodeType nodeType, java.lang.String clusterName, java.lang.Object nodeLocation, ConfigManager configManager)  
      static org.apache.iotdb.common.rpc.thrift.TSStatus confirmNodeRestart​(org.apache.iotdb.commons.cluster.NodeType nodeType, java.lang.String clusterName, int nodeId, java.lang.Object nodeLocation, ConfigManager configManager)  
      static boolean isTEndPointsOfTConfigNodeLocationUpdated​(org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation configNodeLocationA, org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation configNodeLocationB)
      Check if some TEndPoints of the specified ConfigNode have updated.
      static boolean isTEndPointsOfTDataNodeLocationUpdated​(org.apache.iotdb.common.rpc.thrift.TDataNodeLocation dataNodeLocationA, org.apache.iotdb.common.rpc.thrift.TDataNodeLocation dataNodeLocationB)
      Check if some TEndPoints of the specified DataNode have updated.
      static org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation matchRegisteredConfigNode​(org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation configNodeLocation, java.util.List<org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation> registeredConfigNodes)
      Check if there exists a registered ConfigNode who has the same index of the given one.
      static org.apache.iotdb.common.rpc.thrift.TDataNodeLocation matchRegisteredDataNode​(org.apache.iotdb.common.rpc.thrift.TDataNodeLocation dataNodeLocation, java.util.List<org.apache.iotdb.common.rpc.thrift.TDataNodeConfiguration> registeredDataNodes)
      Check if there exists a registered DataNode who has the same index of the given one.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • ACCEPT_NODE_REGISTRATION

        public static final org.apache.iotdb.common.rpc.thrift.TSStatus ACCEPT_NODE_REGISTRATION
      • ACCEPT_NODE_RESTART

        public static final org.apache.iotdb.common.rpc.thrift.TSStatus ACCEPT_NODE_RESTART
    • 构造器详细资料

      • ClusterNodeStartUtils

        public ClusterNodeStartUtils()
    • 方法详细资料

      • confirmNodeRegistration

        public static org.apache.iotdb.common.rpc.thrift.TSStatus confirmNodeRegistration​(org.apache.iotdb.commons.cluster.NodeType nodeType,
                                                                                          java.lang.String clusterName,
                                                                                          java.lang.Object nodeLocation,
                                                                                          ConfigManager configManager)
      • confirmNodeRestart

        public static org.apache.iotdb.common.rpc.thrift.TSStatus confirmNodeRestart​(org.apache.iotdb.commons.cluster.NodeType nodeType,
                                                                                     java.lang.String clusterName,
                                                                                     int nodeId,
                                                                                     java.lang.Object nodeLocation,
                                                                                     ConfigManager configManager)
      • checkConflictTEndPointForNewConfigNode

        public static java.util.List<org.apache.iotdb.common.rpc.thrift.TEndPoint> checkConflictTEndPointForNewConfigNode​(org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation newConfigNodeLocation,
                                                                                                                          java.util.List<org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation> registeredConfigNodes)
        Check if there exist conflict TEndPoints on the ConfigNode to be registered
        参数:
        newConfigNodeLocation - The TConfigNode of the ConfigNode to be registered
        registeredConfigNodes - All registered ConfigNodes
        返回:
        The conflict TEndPoints if exist
      • checkConflictTEndPointForNewDataNode

        public static java.util.List<org.apache.iotdb.common.rpc.thrift.TEndPoint> checkConflictTEndPointForNewDataNode​(org.apache.iotdb.common.rpc.thrift.TDataNodeLocation newDataNodeLocation,
                                                                                                                        java.util.List<org.apache.iotdb.common.rpc.thrift.TDataNodeConfiguration> registeredDataNodes)
        Check if there exist conflict TEndPoints on the DataNode to be registered
        参数:
        newDataNodeLocation - The TDataNodeLocation of the DataNode to be registered
        registeredDataNodes - All registered DataNodes
        返回:
        The conflict TEndPoints if exist
      • matchRegisteredConfigNode

        public static org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation matchRegisteredConfigNode​(org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation configNodeLocation,
                                                                                                       java.util.List<org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation> registeredConfigNodes)
        Check if there exists a registered ConfigNode who has the same index of the given one.
        参数:
        configNodeLocation - The given ConfigNode
        registeredConfigNodes - Registered ConfigNodes
        返回:
        The ConfigNodeLocation who has the same index of the given one, null otherwise.
      • matchRegisteredDataNode

        public static org.apache.iotdb.common.rpc.thrift.TDataNodeLocation matchRegisteredDataNode​(org.apache.iotdb.common.rpc.thrift.TDataNodeLocation dataNodeLocation,
                                                                                                   java.util.List<org.apache.iotdb.common.rpc.thrift.TDataNodeConfiguration> registeredDataNodes)
        Check if there exists a registered DataNode who has the same index of the given one.
        参数:
        dataNodeLocation - The given DataNode
        registeredDataNodes - Registered DataNodes
        返回:
        The DataNodeLocation who has the same index of the given one, null otherwise.
      • isTEndPointsOfTConfigNodeLocationUpdated

        public static boolean isTEndPointsOfTConfigNodeLocationUpdated​(org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation configNodeLocationA,
                                                                       org.apache.iotdb.common.rpc.thrift.TConfigNodeLocation configNodeLocationB)
        Check if some TEndPoints of the specified ConfigNode have updated.
        返回:
        True if some TEndPoints of the specified ConfigNode have updated, false otherwise.
      • isTEndPointsOfTDataNodeLocationUpdated

        public static boolean isTEndPointsOfTDataNodeLocationUpdated​(org.apache.iotdb.common.rpc.thrift.TDataNodeLocation dataNodeLocationA,
                                                                     org.apache.iotdb.common.rpc.thrift.TDataNodeLocation dataNodeLocationB)
        Check if some TEndPoints of the specified DataNode have updated.
        返回:
        True if some TEndPoints of the specified DataNode have updated, false otherwise.