类 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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addServiceListener(ServiceInstancesChangedListener instanceListener)
void
buildRouterChain(URL url)
void
destroy()
destroy.void
discordAddresses()
List<Invoker<T>>
doList(Invocation invocation)
List<Invoker<T>>
getAllInvokers()
URL
getConsumerUrl()
Class<T>
getInterface()
get service type.List<Invoker<T>>
getInvokers()
URL
getOriginalConsumerUrl()
URL
getRegisteredConsumerUrl()
Registry
getRegistry()
URL
getSubscribeUrl()
boolean
isNotificationReceived()
boolean
isShouldRegister()
void
setInvokersChangedListener(InvokersChangedListener listener)
void
setProtocol(Protocol protocol)
void
setRegisteredConsumerUrl(URL url)
void
setRegistry(Registry registry)
void
setSubscribeUrl(URL subscribeUrl)
void
subscribe(URL url)
void
unSubscribe(URL url)
-
从类继承的方法 org.apache.dubbo.rpc.cluster.directory.AbstractDirectory
getRouterChain, getUrl, isDestroyed, list, setConsumerUrl, setRouterChain
-
从接口继承的方法 org.apache.dubbo.rpc.cluster.Directory
isEmpty, isServiceDiscovery
-
从接口继承的方法 org.apache.dubbo.common.Node
isAvailable
-
从接口继承的方法 org.apache.dubbo.registry.NotifyListener
notify
-
-
-
-
方法详细资料
-
addServiceListener
public void addServiceListener(ServiceInstancesChangedListener instanceListener)
- 指定者:
addServiceListener
在接口中NotifyListener
-
setProtocol
public void setProtocol(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<Invoker<T>> doList(Invocation invocation)
-
getInterface
public Class<T> getInterface()
从接口复制的说明:Directory
get service type.- 指定者:
getInterface
在接口中Directory<T>
- 返回:
- service type.
-
getConsumerUrl
public URL getConsumerUrl()
- 指定者:
getConsumerUrl
在接口中Directory<T>
- 指定者:
getConsumerUrl
在接口中NotifyListener
- 覆盖:
getConsumerUrl
在类中AbstractDirectory<T>
-
getOriginalConsumerUrl
public URL getOriginalConsumerUrl()
-
getRegisteredConsumerUrl
public URL getRegisteredConsumerUrl()
-
getSubscribeUrl
public URL getSubscribeUrl()
-
setSubscribeUrl
public void setSubscribeUrl(URL subscribeUrl)
-
setRegisteredConsumerUrl
public void setRegisteredConsumerUrl(URL url)
-
buildRouterChain
public void buildRouterChain(URL url)
-
destroy
public void destroy()
从接口复制的说明:Node
destroy.- 指定者:
destroy
在接口中Node
- 覆盖:
destroy
在类中AbstractDirectory<T>
-
discordAddresses
public void discordAddresses()
- 指定者:
discordAddresses
在接口中Directory<T>
- 覆盖:
discordAddresses
在类中AbstractDirectory<T>
-
setInvokersChangedListener
public void setInvokersChangedListener(InvokersChangedListener listener)
-
isNotificationReceived
public boolean isNotificationReceived()
- 指定者:
isNotificationReceived
在接口中Directory<T>
-
-