public class NacosServiceDiscovery extends AbstractServiceDiscovery
ServiceDiscovery implementationServiceDiscoveryCOMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
NacosServiceDiscovery(ApplicationModel applicationModel,
URL registryURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) |
void |
doDestroy() |
void |
doRegister(ServiceInstance serviceInstance) |
void |
doUnregister(ServiceInstance serviceInstance) |
List<ServiceInstance> |
getInstances(String serviceName) |
Set<String> |
getServices() |
URL |
getUrl() |
destroy, getLocalInstance, getLocalMetadata, getRemoteMetadata, getRemoteMetadata, isDestroy, lookup, register, register, subscribe, unregister, unregister, unsubscribe, updateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateListener, getDelay, removeServiceInstancesChangedListener, toStringcompareTo, getPrioritypublic NacosServiceDiscovery(ApplicationModel applicationModel, URL registryURL)
public void doDestroy()
throws Exception
doDestroy in class AbstractServiceDiscoveryExceptionpublic void doRegister(ServiceInstance serviceInstance)
doRegister 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()
getUrl in interface ServiceDiscoverygetUrl in class AbstractServiceDiscoveryCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.