类 MultipleServiceDiscovery
- java.lang.Object
-
- org.apache.dubbo.registry.multiple.MultipleServiceDiscovery
-
- 所有已实现的接口:
Comparable<org.apache.dubbo.common.lang.Prioritized>,org.apache.dubbo.common.lang.Prioritized,ServiceDiscovery
public class MultipleServiceDiscovery extends Object implements ServiceDiscovery
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringREGISTRY_PREFIX_KEY
-
构造器概要
构造器 构造器 说明 MultipleServiceDiscovery()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddServiceInstancesChangedListener(ServiceInstancesChangedListener listener)ServiceInstancesChangedListenercreateListener(Set<String> serviceNames)voiddestroy()org.apache.dubbo.common.utils.Page<ServiceInstance>getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly)ServiceInstancegetLocalInstance()Set<String>getServices()org.apache.dubbo.common.URLgetUrl()voidinitialize(org.apache.dubbo.common.URL registryURL)booleanisDestroy()voidregister(ServiceInstance serviceInstance)voidunregister(ServiceInstance serviceInstance)voidupdate(ServiceInstance serviceInstance)-
从接口继承的方法 org.apache.dubbo.registry.client.ServiceDiscovery
dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, dispatchServiceInstancesChangedEvent, getDefaultPageSize, getDelay, getInstances, getInstances, getInstances, removeServiceInstancesChangedListener, toString
-
-
-
-
方法详细资料
-
initialize
public void initialize(org.apache.dubbo.common.URL registryURL) throws Exception- 指定者:
initialize在接口中ServiceDiscovery- 抛出:
Exception
-
getUrl
public org.apache.dubbo.common.URL getUrl()
- 指定者:
getUrl在接口中ServiceDiscovery
-
destroy
public void destroy() throws Exception- 指定者:
destroy在接口中ServiceDiscovery- 抛出:
Exception
-
isDestroy
public boolean isDestroy()
- 指定者:
isDestroy在接口中ServiceDiscovery
-
register
public void register(ServiceInstance serviceInstance) throws RuntimeException
- 指定者:
register在接口中ServiceDiscovery- 抛出:
RuntimeException
-
update
public void update(ServiceInstance serviceInstance) throws RuntimeException
- 指定者:
update在接口中ServiceDiscovery- 抛出:
RuntimeException
-
unregister
public void unregister(ServiceInstance serviceInstance) throws RuntimeException
- 指定者:
unregister在接口中ServiceDiscovery- 抛出:
RuntimeException
-
addServiceInstancesChangedListener
public void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws NullPointerException, IllegalArgumentException
-
createListener
public ServiceInstancesChangedListener createListener(Set<String> serviceNames)
- 指定者:
createListener在接口中ServiceDiscovery
-
getInstances
public org.apache.dubbo.common.utils.Page<ServiceInstance> getInstances(String serviceName, int offset, int pageSize, boolean healthyOnly) throws NullPointerException, IllegalArgumentException, UnsupportedOperationException
-
getServices
public Set<String> getServices()
- 指定者:
getServices在接口中ServiceDiscovery
-
getLocalInstance
public ServiceInstance getLocalInstance()
- 指定者:
getLocalInstance在接口中ServiceDiscovery
-
-