public class NacosNamingServiceUtils extends Object
NamingService| Modifier and Type | Method and Description |
|---|---|
static NacosNamingServiceWrapper |
createNamingService(URL connectionURL)
Create an instance of
NamingService from specified connection url |
static String |
getGroup(URL connectionURL)
The group of
NamingService to register |
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 String getGroup(URL connectionURL)
NamingService to registerconnectionURL - connection urlpublic static NacosNamingServiceWrapper createNamingService(URL connectionURL)
NamingService from specified connection urlconnectionURL - connection urlNamingServiceCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.