public class NopServiceDiscovery extends AbstractServiceDiscovery
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
NopServiceDiscovery(ApplicationModel applicationModel,
URL registryURL) |
NopServiceDiscovery(String serviceName,
URL registryURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
doDestroy() |
void |
doRegister(ServiceInstance serviceInstance) |
void |
doUnregister(ServiceInstance serviceInstance) |
List<ServiceInstance> |
getInstances(String serviceName) |
Set<String> |
getServices()
Gets all service names
|
destroy, getLocalInstance, getLocalMetadata, getRemoteMetadata, getRemoteMetadata, getUrl, isDestroy, lookup, register, register, subscribe, unregister, unregister, unsubscribe, updateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddServiceInstancesChangedListener, createListener, getDelay, removeServiceInstancesChangedListener, toStringcompareTo, getPrioritypublic NopServiceDiscovery(ApplicationModel applicationModel, URL registryURL)
public void doRegister(ServiceInstance serviceInstance) throws RuntimeException
RuntimeExceptionpublic void doUnregister(ServiceInstance serviceInstance)
public Set<String> getServices()
ServiceDiscoverySetpublic List<ServiceInstance> getInstances(String serviceName) throws NullPointerException
NullPointerExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.