public class MultipleRegistryServiceDiscovery extends AbstractServiceDiscovery
| Modifier and Type | Field and Description |
|---|---|
static String |
REGISTRY_PREFIX_KEY |
| Constructor and Description |
|---|
MultipleRegistryServiceDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) |
void |
destroy() |
void |
doRegister(ServiceInstance serviceInstance) |
void |
doUpdate(ServiceInstance serviceInstance) |
org.apache.dubbo.common.utils.Page<ServiceInstance> |
getInstances(String serviceName,
int offset,
int pageSize,
boolean healthyOnly) |
ServiceInstance |
getLocalInstance() |
Set<String> |
getServices() |
org.apache.dubbo.common.URL |
getUrl() |
void |
initialize(org.apache.dubbo.common.URL registryURL) |
void |
unregister(ServiceInstance serviceInstance) |
register, updateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getInstances, getInstances, getInstances, removeServiceInstancesChangedListener, toStringpublic static final String REGISTRY_PREFIX_KEY
public void initialize(org.apache.dubbo.common.URL registryURL)
throws Exception
Exceptionpublic org.apache.dubbo.common.URL getUrl()
public void doRegister(ServiceInstance serviceInstance)
doRegister in class AbstractServiceDiscoverypublic void doUpdate(ServiceInstance serviceInstance)
doUpdate in class AbstractServiceDiscoverypublic void unregister(ServiceInstance serviceInstance) throws RuntimeException
RuntimeExceptionpublic void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws NullPointerException, IllegalArgumentException
public org.apache.dubbo.common.utils.Page<ServiceInstance> getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly) throws NullPointerException, IllegalArgumentException, UnsupportedOperationException
public ServiceInstance getLocalInstance()
getLocalInstance in interface ServiceDiscoverygetLocalInstance in class AbstractServiceDiscoveryCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.