类 NacosNamingServiceUtils


  • public class NacosNamingServiceUtils
    extends Object
    The utilities class for NamingService
    从以下版本开始:
    2.7.5
    • 构造器详细资料

      • NacosNamingServiceUtils

        public NacosNamingServiceUtils()
    • 方法详细资料

      • toInstance

        public static com.alibaba.nacos.api.naming.pojo.Instance toInstance​(ServiceInstance serviceInstance)
        Convert the ServiceInstance to Instance
        参数:
        serviceInstance - ServiceInstance
        返回:
        non-null
        从以下版本开始:
        2.7.5
      • toServiceInstance

        public static ServiceInstance toServiceInstance​(URL registryUrl,
                                                        com.alibaba.nacos.api.naming.pojo.Instance instance)
        Convert the Instance to ServiceInstance
        参数:
        instance - Instance
        返回:
        non-null
        从以下版本开始:
        2.7.5