public TSStatus registerAINode(RegisterAINodePlan registerAINodePlan) {
    TSStatus result;
    TAINodeConfiguration info = registerAINodePlan.getAINodeConfiguration();
    aiNodeInfoReadWriteLock.writeLock().lock();
    try {
      synchronized (nextNodeId) {
        if (nextNodeId.get() < info.getLocation().getAiNodeId()) {
          nextNodeId.set(info.getLocation().getAiNodeId());
        }
      }
      registeredAINodes.put(info.getLocation().getAiNodeId(), info);
      result = new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode());
    } finally {
      aiNodeInfoReadWriteLock.writeLock().unlock();
    }
    return result;
  }
Persist AINode info.

@param registerAINodePlan RegisterAINodePlan
@return {@link TSStatusCode#SUCCESS_STATUS}
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/node/NodeInfo.java