public class ZookeeperServiceDiscovery extends AbstractServiceDiscovery
ServiceDiscovery implementation based on
Apache Curator X Discovery| 构造器和说明 |
|---|
ZookeeperServiceDiscovery() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, updatedispatchServiceInstancesChangedEvent, 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 在类中 AbstractServiceDiscoverypublic void doUpdate(ServiceInstance serviceInstance)
doUpdate 在类中 AbstractServiceDiscoverypublic void unregister(ServiceInstance serviceInstance) throws RuntimeException
RuntimeExceptionpublic List<ServiceInstance> getInstances(String serviceName) throws NullPointerException
public 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
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.