public class NacosNamingServiceUtils extends Object
NamingService| Constructor and Description |
|---|
NacosNamingServiceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static NacosNamingServiceWrapper |
createNamingService(URL connectionURL)
Create an instance of
NamingService from specified connection url |
static com.alibaba.nacos.api.naming.pojo.Instance |
toInstance(ServiceInstance serviceInstance)
Convert the
ServiceInstance to Instance |
static ServiceInstance |
toServiceInstance(URL registryUrl,
com.alibaba.nacos.api.naming.pojo.Instance instance)
Convert the
Instance to ServiceInstance |
public static com.alibaba.nacos.api.naming.pojo.Instance toInstance(ServiceInstance serviceInstance)
ServiceInstance to InstanceserviceInstance - ServiceInstancepublic static ServiceInstance toServiceInstance(URL registryUrl, com.alibaba.nacos.api.naming.pojo.Instance instance)
Instance to ServiceInstanceinstance - Instancepublic static NacosNamingServiceWrapper createNamingService(URL connectionURL)
NamingService from specified connection urlconnectionURL - connection urlNamingServiceCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.