public void createNodeHeartbeatCache(NodeType nodeType, int nodeId) {
    switch (nodeType) {
      case ConfigNode:
        nodeCacheMap.put(nodeId, new ConfigNodeHeartbeatCache(nodeId));
        break;
      case DataNode:
        nodeCacheMap.put(nodeId, new DataNodeHeartbeatCache(nodeId));
        break;
      case AINode:
        nodeCacheMap.put(nodeId, new AINodeHeartbeatCache(nodeId));
        break;
    }
    heartbeatProcessingMap.put(nodeId, new AtomicBoolean(false));
  }
Create a new NodeHeartbeatCache for the specified Node.

@param nodeType The specified NodeType
@param nodeId The specified NodeId
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/LoadCache.java