public class NacosNamingServiceUtils extends Object
NamingService| 构造器和说明 |
|---|
NacosNamingServiceUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.alibaba.nacos.api.naming.NamingService |
createNamingService(org.apache.dubbo.common.URL connectionURL)
Create an instance of
NamingService from specified connection url |
static String |
getGroup(org.apache.dubbo.common.URL connectionURL)
The group of
NamingService to register |
static com.alibaba.nacos.api.naming.pojo.Instance |
toInstance(org.apache.dubbo.registry.client.ServiceInstance serviceInstance)
Convert the
ServiceInstance to Instance |
static org.apache.dubbo.registry.client.ServiceInstance |
toServiceInstance(com.alibaba.nacos.api.naming.pojo.Instance instance)
Convert the
Instance to ServiceInstance |
public static com.alibaba.nacos.api.naming.pojo.Instance toInstance(org.apache.dubbo.registry.client.ServiceInstance serviceInstance)
ServiceInstance to InstanceserviceInstance - ServiceInstancepublic static org.apache.dubbo.registry.client.ServiceInstance toServiceInstance(com.alibaba.nacos.api.naming.pojo.Instance instance)
Instance to ServiceInstanceinstance - Instancepublic static String getGroup(org.apache.dubbo.common.URL connectionURL)
NamingService to registerconnectionURL - connection urlpublic static com.alibaba.nacos.api.naming.NamingService createNamingService(org.apache.dubbo.common.URL connectionURL)
NamingService from specified connection urlconnectionURL - connection urlNamingServiceCopyright © 2020. All rights reserved.