类 DynamicDirectory<T>
- java.lang.Object
-
- org.apache.dubbo.rpc.cluster.directory.AbstractDirectory<T>
-
- org.apache.dubbo.registry.integration.DynamicDirectory<T>
-
- 所有已实现的接口:
Node,NotifyListener,Directory<T>
public abstract class DynamicDirectory<T> extends AbstractDirectory<T> implements NotifyListener
RegistryDirectory
-
-
构造器概要
构造器 构造器 说明 DynamicDirectory(Class<T> serviceType, URL url)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddServiceListener(ServiceInstancesChangedListener instanceListener)voidbuildRouterChain(URL url)voiddestroy()voiddiscordAddresses()List<org.apache.dubbo.rpc.Invoker<T>>doList(org.apache.dubbo.rpc.Invocation invocation)List<org.apache.dubbo.rpc.Invoker<T>>getAllInvokers()URLgetConsumerUrl()Class<T>getInterface()List<org.apache.dubbo.rpc.Invoker<T>>getInvokers()URLgetRegisteredConsumerUrl()RegistrygetRegistry()booleanisShouldRegister()voidsetInvokersChangedListener(InvokersChangedListener listener)voidsetProtocol(org.apache.dubbo.rpc.Protocol protocol)voidsetRegisteredConsumerUrl(URL url)voidsetRegistry(Registry registry)voidsubscribe(URL url)voidunSubscribe(URL url)-
从类继承的方法 org.apache.dubbo.rpc.cluster.directory.AbstractDirectory
getRouterChain, getSubscribeConsumerurl, getUrl, isDestroyed, list, setConsumerUrl, setRouterChain
-
从接口继承的方法 org.apache.dubbo.common.Node
isAvailable
-
从接口继承的方法 org.apache.dubbo.registry.NotifyListener
notify
-
-
-
-
方法详细资料
-
addServiceListener
public void addServiceListener(ServiceInstancesChangedListener instanceListener)
- 指定者:
addServiceListener在接口中NotifyListener
-
setProtocol
public void setProtocol(org.apache.dubbo.rpc.Protocol protocol)
-
setRegistry
public void setRegistry(Registry registry)
-
getRegistry
public Registry getRegistry()
-
isShouldRegister
public boolean isShouldRegister()
-
subscribe
public void subscribe(URL url)
-
unSubscribe
public void unSubscribe(URL url)
-
doList
public List<org.apache.dubbo.rpc.Invoker<T>> doList(org.apache.dubbo.rpc.Invocation invocation)
-
getInterface
public Class<T> getInterface()
- 指定者:
getInterface在接口中Directory<T>
-
getAllInvokers
public List<org.apache.dubbo.rpc.Invoker<T>> getAllInvokers()
- 指定者:
getAllInvokers在接口中Directory<T>
-
getConsumerUrl
public URL getConsumerUrl()
- 指定者:
getConsumerUrl在接口中Directory<T>- 覆盖:
getConsumerUrl在类中AbstractDirectory<T>
-
getRegisteredConsumerUrl
public URL getRegisteredConsumerUrl()
-
setRegisteredConsumerUrl
public void setRegisteredConsumerUrl(URL url)
-
buildRouterChain
public void buildRouterChain(URL url)
-
destroy
public void destroy()
- 指定者:
destroy在接口中Node- 覆盖:
destroy在类中AbstractDirectory<T>
-
discordAddresses
public void discordAddresses()
- 指定者:
discordAddresses在接口中Directory<T>- 覆盖:
discordAddresses在类中AbstractDirectory<T>
-
setInvokersChangedListener
public void setInvokersChangedListener(InvokersChangedListener listener)
-
-