com.alibaba.dubbo.registry.zookeeper
Class ZookeeperRegistry
java.lang.Object
com.alibaba.dubbo.registry.support.AbstractRegistry
com.alibaba.dubbo.registry.support.FailbackRegistry
com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry
- All Implemented Interfaces:
- Node, Registry, RegistryService
public class ZookeeperRegistry
- extends FailbackRegistry
ZookeeperRegistry
- Author:
- william.liangf
ZookeeperRegistry
public ZookeeperRegistry(URL url,
ZookeeperTransporter zookeeperTransporter)
isAvailable
public boolean isAvailable()
- Description copied from interface:
Node
- is available.
- Returns:
- available.
destroy
public void destroy()
- Description copied from interface:
Node
- destroy.
- Specified by:
destroy
in interface Node
- Overrides:
destroy
in class FailbackRegistry
lookup
public List<URL> lookup(URL url)
- Description copied from interface:
RegistryService
- 查询符合条件的已注册数据,与订阅的推模式相对应,这里为拉模式,只返回一次结果。
- Specified by:
lookup
in interface RegistryService
- Overrides:
lookup
in class AbstractRegistry
- Parameters:
url
- 查询条件,不允许为空,如:consumer://10.20.153.10/com.alibaba.foo.BarService?version=1.0.0&application=kylin
- Returns:
- 已注册信息列表,可能为空,含义同
com.alibaba.dubbo.registry.NotifyListener#notify(List)
的参数。 - See Also:
NotifyListener.notify(List)
Copyright © 2012–2017 Alibaba. All rights reserved.