public class ReflectionBasedServiceDiscovery extends AbstractServiceDiscovery
| Modifier and Type | Field and Description |
|---|---|
ConcurrentMap<String,MetadataService> |
metadataServiceProxies |
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| Constructor and Description |
|---|
ReflectionBasedServiceDiscovery(ApplicationModel applicationModel,
URL registryURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
doDestroy() |
void |
doInitialize(URL registryURL) |
void |
doRegister(ServiceInstance serviceInstance) |
void |
doUnregister(ServiceInstance serviceInstance) |
void |
doUpdate(ServiceInstance serviceInstance) |
void |
fillServiceInstance(DefaultServiceInstance serviceInstance) |
ConcurrentHashMap<String,List<ServiceInstance>> |
getCachedServiceInstances()
Deprecated.
|
List<ServiceInstance> |
getInstances(String serviceName) |
Set<String> |
getServices()
Gets all service names
|
void |
notifyListener(String serviceName,
ServiceInstancesChangedListener listener,
List<ServiceInstance> instances) |
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 ConcurrentMap<String,MetadataService> metadataServiceProxies
public ReflectionBasedServiceDiscovery(ApplicationModel applicationModel, URL registryURL)
public void doInitialize(URL registryURL)
public void doRegister(ServiceInstance serviceInstance) throws RuntimeException
RuntimeExceptionpublic void doUpdate(ServiceInstance serviceInstance) throws RuntimeException
RuntimeExceptionpublic void doUnregister(ServiceInstance serviceInstance) throws RuntimeException
RuntimeExceptionpublic final void fillServiceInstance(DefaultServiceInstance serviceInstance)
public final void notifyListener(String serviceName, ServiceInstancesChangedListener listener, List<ServiceInstance> instances)
public Set<String> getServices()
ServiceDiscoverySetpublic List<ServiceInstance> getInstances(String serviceName) throws NullPointerException
NullPointerException@Deprecated public final ConcurrentHashMap<String,List<ServiceInstance>> getCachedServiceInstances()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.