public class NacosServiceDiscovery extends Object implements ServiceDiscovery
ServiceDiscovery implementationServiceDiscoveryCOMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
NacosServiceDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) |
void |
destroy() |
List<ServiceInstance> |
getInstances(String serviceName) |
Set<String> |
getServices() |
void |
initialize(URL registryURL) |
void |
register(ServiceInstance serviceInstance) |
void |
unregister(ServiceInstance serviceInstance) |
void |
update(ServiceInstance serviceInstance) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getInstances, getInstances, getInstances, toStringcompareTo, getPrioritypublic void initialize(URL registryURL) throws Exception
initialize in interface ServiceDiscoveryExceptionpublic void destroy()
destroy in interface ServiceDiscoverypublic void register(ServiceInstance serviceInstance) throws RuntimeException
register in interface ServiceDiscoveryRuntimeExceptionpublic void update(ServiceInstance serviceInstance) throws RuntimeException
update in interface ServiceDiscoveryRuntimeExceptionpublic void unregister(ServiceInstance serviceInstance) throws RuntimeException
unregister in interface ServiceDiscoveryRuntimeExceptionpublic Set<String> getServices()
getServices in interface ServiceDiscoverypublic List<ServiceInstance> getInstances(String serviceName) throws NullPointerException
getInstances in interface ServiceDiscoveryNullPointerExceptionpublic void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws NullPointerException, IllegalArgumentException
addServiceInstancesChangedListener in interface ServiceDiscoveryNullPointerExceptionIllegalArgumentExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.