com.alibaba.dubbo.registry.dubbo
Class DubboRegistry

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.dubbo.DubboRegistry
All Implemented Interfaces:
Node, Registry, RegistryService

public class DubboRegistry
extends FailbackRegistry

DubboRegistry

Author:
william.liangf

Constructor Summary
DubboRegistry(Invoker<RegistryService> registryInvoker, RegistryService registryService)
           
 
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

DubboRegistry

public DubboRegistry(Invoker<RegistryService> registryInvoker,
                     RegistryService registryService)
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.