接口 Directory<T>
-
- 所有超级接口:
org.apache.dubbo.common.Node
- 所有已知实现类:
AbstractDirectory,StaticDirectory
public interface Directory<T> extends org.apache.dubbo.common.NodeDirectory. (SPI, Prototype, ThreadSafe)- 另请参阅:
org.apache.dubbo.rpc.cluster.Cluster#join(Directory)
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 voidaddDisabledInvoker(Invoker<T> invoker)disable an invoker, remove from list next time will be removed when invoker is removed by address refresh notification using in service offline notificationvoidaddInvalidateInvoker(Invoker<T> invoker)invalidate an invoker, add it into reconnect task, remove from list next time will be recovered by address refresh notification or reconnect success notificationvoiddiscordAddresses()List<Invoker<T>>getAllInvokers()list invokers include all invokers from registryorg.apache.dubbo.common.URLgetConsumerUrl()Class<T>getInterface()get service type.RouterChain<T>getRouterChain()booleanisDestroyed()default booleanisEmpty()default booleanisNotificationReceived()default booleanisServiceDiscovery()List<Invoker<T>>list(Invocation invocation)list invokers.voidrecoverDisabledInvoker(Invoker<T> invoker)recover a disabled invoker
-
-
-
方法详细资料
-
list
List<Invoker<T>> list(Invocation invocation) throws RpcException
list invokers. filtered by invocation- 返回:
- invokers
- 抛出:
RpcException
-
getConsumerUrl
org.apache.dubbo.common.URL getConsumerUrl()
-
isDestroyed
boolean isDestroyed()
-
isEmpty
default boolean isEmpty()
-
isServiceDiscovery
default boolean isServiceDiscovery()
-
discordAddresses
void discordAddresses()
-
getRouterChain
RouterChain<T> getRouterChain()
-
addInvalidateInvoker
void addInvalidateInvoker(Invoker<T> invoker)
invalidate an invoker, add it into reconnect task, remove from list next time will be recovered by address refresh notification or reconnect success notification- 参数:
invoker- invoker to invalidate
-
addDisabledInvoker
void addDisabledInvoker(Invoker<T> invoker)
disable an invoker, remove from list next time will be removed when invoker is removed by address refresh notification using in service offline notification- 参数:
invoker- invoker to invalidate
-
recoverDisabledInvoker
void recoverDisabledInvoker(Invoker<T> invoker)
recover a disabled invoker- 参数:
invoker- invoker to invalidate
-
isNotificationReceived
default boolean isNotificationReceived()
-
-