public class NacosServiceDiscovery extends Object implements org.apache.dubbo.registry.client.ServiceDiscovery
ServiceDiscovery implementationServiceDiscovery| 构造器和说明 |
|---|
NacosServiceDiscovery() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addServiceInstancesChangedListener(org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener listener) |
void |
destroy() |
List<org.apache.dubbo.registry.client.ServiceInstance> |
getInstances(String serviceName) |
Set<String> |
getServices() |
void |
initialize(org.apache.dubbo.common.URL registryURL) |
void |
register(org.apache.dubbo.registry.client.ServiceInstance serviceInstance) |
void |
unregister(org.apache.dubbo.registry.client.ServiceInstance serviceInstance) |
void |
update(org.apache.dubbo.registry.client.ServiceInstance serviceInstance) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void initialize(org.apache.dubbo.common.URL registryURL)
throws Exception
initialize 在接口中 org.apache.dubbo.registry.client.ServiceDiscoveryExceptionpublic void destroy()
destroy 在接口中 org.apache.dubbo.registry.client.ServiceDiscoverypublic void register(org.apache.dubbo.registry.client.ServiceInstance serviceInstance)
throws RuntimeException
register 在接口中 org.apache.dubbo.registry.client.ServiceDiscoveryRuntimeExceptionpublic void update(org.apache.dubbo.registry.client.ServiceInstance serviceInstance)
throws RuntimeException
update 在接口中 org.apache.dubbo.registry.client.ServiceDiscoveryRuntimeExceptionpublic void unregister(org.apache.dubbo.registry.client.ServiceInstance serviceInstance)
throws RuntimeException
unregister 在接口中 org.apache.dubbo.registry.client.ServiceDiscoveryRuntimeExceptionpublic Set<String> getServices()
getServices 在接口中 org.apache.dubbo.registry.client.ServiceDiscoverypublic List<org.apache.dubbo.registry.client.ServiceInstance> getInstances(String serviceName) throws NullPointerException
getInstances 在接口中 org.apache.dubbo.registry.client.ServiceDiscoveryNullPointerExceptionpublic void addServiceInstancesChangedListener(org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener listener)
throws NullPointerException,
IllegalArgumentException
addServiceInstancesChangedListener 在接口中 org.apache.dubbo.registry.client.ServiceDiscoveryNullPointerExceptionIllegalArgumentExceptionCopyright © 2020. All rights reserved.