com.alibaba.dubbo.registry.zookeeper
Class ZookeeperRegistry

java.lang.Object
  extended by com.alibaba.dubbo.registry.support.AbstractRegistry
      extended by com.alibaba.dubbo.registry.support.FailbackRegistry
          extended by com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry
All Implemented Interfaces:
Node, Registry, RegistryService

public class ZookeeperRegistry
extends FailbackRegistry

ZookeeperRegistry

Author:
william.liangf

Constructor Summary
ZookeeperRegistry(URL url, ZookeeperTransporter zookeeperTransporter)
           
 
Method Summary
 void destroy()
          destroy.
 boolean isAvailable()
          is available.
 List<URL> lookup(URL url)
          查询符合条件的已注册数据,与订阅的推模式相对应,这里为拉模式,只返回一次结果。
 
Methods inherited from class com.alibaba.dubbo.registry.support.FailbackRegistry
getFailedNotified, getFailedRegistered, getFailedSubscribed, getFailedUnregistered, getFailedUnsubscribed, getRetryFuture, register, subscribe, unregister, unsubscribe
 
Methods inherited from class com.alibaba.dubbo.registry.support.AbstractRegistry
doSaveProperties, getCacheFile, getCacheProperties, getCacheUrls, getLastCacheChanged, getNotified, getRegistered, getSubscribed, getUrl, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZookeeperRegistry

public ZookeeperRegistry(URL url,
                         ZookeeperTransporter zookeeperTransporter)
Method Detail

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.