public class ZookeeperServiceDiscovery extends AbstractServiceDiscovery
ServiceDiscovery implementation based on
Apache Curator X Discovery| Constructor and Description |
|---|
ZookeeperServiceDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) |
void |
destroy() |
void |
doRegister(ServiceInstance serviceInstance) |
void |
doUpdate(ServiceInstance serviceInstance) |
List<ServiceInstance> |
getInstances(String serviceName) |
org.apache.dubbo.common.utils.Page<ServiceInstance> |
getInstances(String serviceName,
int offset,
int pageSize,
boolean healthyOnly) |
Set<String> |
getServices() |
org.apache.dubbo.common.URL |
getUrl() |
void |
initialize(org.apache.dubbo.common.URL registryURL) |
void |
removeServiceInstancesChangedListener(ServiceInstancesChangedListener listener) |
void |
unregister(ServiceInstance serviceInstance) |
getLocalInstance, register, updateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getInstances, getInstances, toStringpublic 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 List<ServiceInstance> getInstances(String serviceName) throws NullPointerException
NullPointerExceptionpublic org.apache.dubbo.common.utils.Page<ServiceInstance> getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly)
public void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws NullPointerException, IllegalArgumentException
public void removeServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.