public class NacosServiceDiscovery extends AbstractServiceDiscovery
ServiceDiscovery implementationServiceDiscoveryCOMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
NacosServiceDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) |
void |
doDestroy() |
void |
doInitialize(URL registryURL) |
void |
doRegister(ServiceInstance serviceInstance) |
void |
doUnregister(ServiceInstance serviceInstance) |
void |
doUpdate(ServiceInstance serviceInstance) |
List<ServiceInstance> |
getInstances(String serviceName) |
Set<String> |
getServices() |
URL |
getUrl() |
destroy, getLocalInstance, initialize, isDestroy, register, unregister, updateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateListener, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getDelay, getInstances, getInstances, getInstances, removeServiceInstancesChangedListener, toStringcompareTo, getPrioritypublic void doInitialize(URL registryURL) throws Exception
doInitialize in class AbstractServiceDiscoveryExceptionpublic void doDestroy()
throws Exception
doDestroy in class AbstractServiceDiscoveryExceptionpublic void doRegister(ServiceInstance serviceInstance)
doRegister in class AbstractServiceDiscoverypublic void doUpdate(ServiceInstance serviceInstance)
doUpdate in class AbstractServiceDiscoverypublic void doUnregister(ServiceInstance serviceInstance) throws RuntimeException
doUnregister in class AbstractServiceDiscoveryRuntimeExceptionpublic List<ServiceInstance> getInstances(String serviceName) throws NullPointerException
NullPointerExceptionpublic void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws NullPointerException, IllegalArgumentException
public URL getUrl()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.