Class StaticDirectory<T>
java.lang.Object
org.apache.dubbo.rpc.cluster.directory.AbstractDirectory<T>
org.apache.dubbo.rpc.cluster.directory.StaticDirectory<T>
- All Implemented Interfaces:
org.apache.dubbo.common.Node,Directory<T>
StaticDirectory
-
Constructor Summary
ConstructorsConstructorDescriptionStaticDirectory(List<Invoker<T>> invokers) StaticDirectory(List<Invoker<T>> invokers, RouterChain<T> routerChain) StaticDirectory(org.apache.dubbo.common.URL url, List<Invoker<T>> invokers) StaticDirectory(org.apache.dubbo.common.URL url, List<Invoker<T>> invokers, RouterChain<T> routerChain) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()list invokers include all invokers from registryget service type.booleanvoidMethods inherited from class org.apache.dubbo.rpc.cluster.directory.AbstractDirectory
addDisabledInvoker, addInvalidateInvoker, checkConnectivity, discordAddresses, getCheckConnectivityPermit, getConnectivityCheckFuture, getConsumerUrl, getDisabledInvokers, getInvokers, getInvokersToReconnect, getRouterChain, getUrl, getValidInvokers, isDestroyed, list, recoverDisabledInvoker, refreshInvoker, setConsumerUrl, setRouterChain, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.cluster.Directory
isEmpty, isNotificationReceived, isServiceDiscovery
-
Constructor Details
-
StaticDirectory
-
StaticDirectory
-
StaticDirectory
-
StaticDirectory
public StaticDirectory(org.apache.dubbo.common.URL url, List<Invoker<T>> invokers, RouterChain<T> routerChain)
-
-
Method Details
-
getInterface
Description copied from interface:Directoryget service type.- Returns:
- service type.
-
getAllInvokers
Description copied from interface:Directorylist invokers include all invokers from registry -
isAvailable
public boolean isAvailable() -
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.dubbo.common.Node- Overrides:
destroyin classAbstractDirectory<T>
-
buildRouterChain
public void buildRouterChain() -
notify
-