@Override
    public void serverStarted(Server server) {
        final Endpoint endpoint = getEndpoint(server);
        nacosClient.register(endpoint)
                   .aggregate()
                   .handle((res, cause) -> {
                       if (cause != null) {
                           logger.warn("Failed to register {}:{} to Nacos: {}",
                                       endpoint.host(), endpoint.port(), nacosClient.uri(), cause);
                           return null;
                       }

                       if (res.status() != HttpStatus.OK) {
                           logger.warn("Failed to register {}:{} to Nacos: {} (status: {}, content: {})",
                                       endpoint.host(), endpoint.port(), nacosClient.uri(), res.status(),
                                       res.contentUtf8());
                           return null;
                       }

                       logger.info("Registered {}:{} to Nacos: {}",
                                   endpoint.host(), endpoint.port(), nacosClient.uri());
                       isRegistered = true;
                       return null;
                   });
    }
Returns a newly-created {@link NacosUpdatingListenerBuilder} with the specified {@code nacosUri}
and {@code serviceName} to build {@link NacosUpdatingListener}.

@param nacosUri the URI of Nacos API service, including the path up to but not including API version.
                (example: http://localhost:8848/nacos)
nacos/src/main/java/com/linecorp/armeria/server/nacos/NacosUpdatingListener.java