public abstract class DynamicDirectory<T> extends AbstractDirectory<T> implements NotifyListener
| Constructor and Description |
|---|
DynamicDirectory(Class<T> serviceType,
URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceListener(ServiceInstancesChangedListener instanceListener) |
void |
buildRouterChain(URL url) |
void |
destroy() |
void |
discordAddresses() |
List<org.apache.dubbo.rpc.Invoker<T>> |
doList(org.apache.dubbo.rpc.Invocation invocation) |
List<org.apache.dubbo.rpc.Invoker<T>> |
getAllInvokers() |
URL |
getConsumerUrl() |
Class<T> |
getInterface() |
List<org.apache.dubbo.rpc.Invoker<T>> |
getInvokers() |
URL |
getRegisteredConsumerUrl() |
Registry |
getRegistry() |
boolean |
isShouldRegister() |
void |
setInvokersChangedListener(InvokersChangedListener listener) |
void |
setProtocol(org.apache.dubbo.rpc.Protocol protocol) |
void |
setRegisteredConsumerUrl(URL url) |
void |
setRegistry(Registry registry) |
void |
subscribe(URL url) |
void |
unSubscribe(URL url) |
getRouterChain, getSubscribeConsumerurl, getUrl, isDestroyed, list, setConsumerUrl, setRouterChainequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifyisAvailablepublic void addServiceListener(ServiceInstancesChangedListener instanceListener)
addServiceListener in interface NotifyListenerpublic void setProtocol(org.apache.dubbo.rpc.Protocol protocol)
public void setRegistry(Registry registry)
public Registry getRegistry()
public boolean isShouldRegister()
public void subscribe(URL url)
public void unSubscribe(URL url)
public List<org.apache.dubbo.rpc.Invoker<T>> doList(org.apache.dubbo.rpc.Invocation invocation)
doList in class AbstractDirectory<T>public Class<T> getInterface()
getInterface in interface Directory<T>public List<org.apache.dubbo.rpc.Invoker<T>> getAllInvokers()
getAllInvokers in interface Directory<T>public URL getConsumerUrl()
getConsumerUrl in interface Directory<T>getConsumerUrl in class AbstractDirectory<T>public URL getRegisteredConsumerUrl()
public void setRegisteredConsumerUrl(URL url)
public void buildRouterChain(URL url)
public void destroy()
destroy in interface Nodedestroy in class AbstractDirectory<T>public void discordAddresses()
discordAddresses in interface Directory<T>discordAddresses in class AbstractDirectory<T>public void setInvokersChangedListener(InvokersChangedListener listener)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.