类 ZookeeperRegistry
- java.lang.Object
-
- org.apache.dubbo.registry.support.AbstractRegistry
-
- org.apache.dubbo.registry.support.FailbackRegistry
-
- org.apache.dubbo.registry.support.CacheableFailbackRegistry
-
- org.apache.dubbo.registry.zookeeper.ZookeeperRegistry
-
- 所有已实现的接口:
Node
,Registry
,RegistryService
public class ZookeeperRegistry extends CacheableFailbackRegistry
ZookeeperRegistry
-
-
构造器概要
构造器 构造器 说明 ZookeeperRegistry(URL url, ZookeeperTransporter zookeeperTransporter)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
destroy()
destroy.void
doRegister(URL url)
void
doSubscribe(URL url, NotifyListener listener)
void
doUnregister(URL url)
void
doUnsubscribe(URL url, NotifyListener listener)
boolean
isAvailable()
is available.List<URL>
lookup(URL url)
Query the registered data that matches the conditions.-
从类继承的方法 org.apache.dubbo.registry.support.FailbackRegistry
reExportRegister, reExportUnregister, register, removeFailedRegisteredTask, removeFailedSubscribed, removeFailedSubscribedTask, removeFailedUnregisteredTask, removeFailedUnsubscribedTask, subscribe, unregister, unsubscribe
-
从类继承的方法 org.apache.dubbo.registry.support.AbstractRegistry
doSaveProperties, getCacheFile, getCacheProperties, getCacheUrls, getLastCacheChanged, getNotified, getRegistered, getSubscribed, getUrl, toString
-
-
-
-
构造器详细资料
-
ZookeeperRegistry
public ZookeeperRegistry(URL url, ZookeeperTransporter zookeeperTransporter)
-
-
方法详细资料
-
isAvailable
public boolean isAvailable()
从接口复制的说明:Node
is available.- 返回:
- available.
-
destroy
public void destroy()
从接口复制的说明:Node
destroy.- 指定者:
destroy
在接口中Node
- 覆盖:
destroy
在类中FailbackRegistry
-
doRegister
public void doRegister(URL url)
- 指定者:
doRegister
在类中FailbackRegistry
-
doUnregister
public void doUnregister(URL url)
- 指定者:
doUnregister
在类中FailbackRegistry
-
doSubscribe
public void doSubscribe(URL url, NotifyListener listener)
- 指定者:
doSubscribe
在类中FailbackRegistry
-
doUnsubscribe
public void doUnsubscribe(URL url, NotifyListener listener)
-
lookup
public List<URL> lookup(URL url)
从接口复制的说明:RegistryService
Query the registered data that matches the conditions. Corresponding to the push mode of the subscription, this is the pull mode and returns only one result.- 指定者:
lookup
在接口中RegistryService
- 覆盖:
lookup
在类中AbstractRegistry
- 参数:
url
- Query condition, is not allowed to be empty, e.g. consumer://10.20.153.10/org.apache.dubbo.foo.BarService?version=1.0.0&application=kylin- 返回:
- The registered information list, which may be empty, the meaning is the same as the parameters of
org.apache.dubbo.registry.NotifyListener#notify(List
.) - 另请参阅:
NotifyListener.notify(List)
-
-