类 ClusterNodeStartUtils
- java.lang.Object
-
- org.apache.iotdb.confignode.manager.node.ClusterNodeStartUtils
-
public class ClusterNodeStartUtils extends java.lang.ObjectStartup check utils before register/restart a ConfigNode/DataNode
-
-
字段概要
字段 修饰符和类型 字段 说明 static org.apache.iotdb.common.rpc.thrift.TSStatusACCEPT_NODE_REGISTRATIONstatic org.apache.iotdb.common.rpc.thrift.TSStatusACCEPT_NODE_RESTART
-
构造器概要
构造器 构造器 说明 ClusterNodeStartUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 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 registeredstatic 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 registeredstatic org.apache.iotdb.common.rpc.thrift.TSStatusconfirmNodeRegistration(org.apache.iotdb.commons.cluster.NodeType nodeType, java.lang.String clusterName, java.lang.Object nodeLocation, ConfigManager configManager)static org.apache.iotdb.common.rpc.thrift.TSStatusconfirmNodeRestart(org.apache.iotdb.commons.cluster.NodeType nodeType, java.lang.String clusterName, int nodeId, java.lang.Object nodeLocation, ConfigManager configManager)static booleanisTEndPointsOfTConfigNodeLocationUpdated(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 booleanisTEndPointsOfTDataNodeLocationUpdated(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.TConfigNodeLocationmatchRegisteredConfigNode(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.TDataNodeLocationmatchRegisteredDataNode(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.
-
-
-
方法详细资料
-
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 registeredregisteredConfigNodes- 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 registeredregisteredDataNodes- 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 ConfigNoderegisteredConfigNodes- 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 DataNoderegisteredDataNodes- 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.
-
-