public abstract class AbstractDirectory<T> extends Object implements Directory<T>
| 构造器和说明 |
|---|
AbstractDirectory(org.apache.dubbo.common.URL url) |
AbstractDirectory(org.apache.dubbo.common.URL url,
boolean isUrlFromRegistry) |
AbstractDirectory(org.apache.dubbo.common.URL url,
RouterChain<T> routerChain,
boolean isUrlFromRegistry) |
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
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
|
void |
checkConnectivity() |
void |
destroy() |
void |
discordAddresses() |
Semaphore |
getCheckConnectivityPermit()
已过时。
|
ScheduledFuture<?> |
getConnectivityCheckFuture()
已过时。
|
org.apache.dubbo.common.URL |
getConsumerUrl() |
Set<Invoker<T>> |
getDisabledInvokers() |
BitList<Invoker<T>> |
getInvokers() |
List<Invoker<T>> |
getInvokersToReconnect() |
RouterChain<T> |
getRouterChain() |
org.apache.dubbo.common.URL |
getUrl() |
BitList<Invoker<T>> |
getValidInvokers() |
boolean |
isDestroyed() |
List<Invoker<T>> |
list(Invocation invocation)
list invokers.
|
void |
recoverDisabledInvoker(Invoker<T> invoker)
recover a disabled invoker
|
void |
refreshInvoker()
Refresh invokers from total invokers
1. all the invokers in need to reconnect list should be removed in the valid invokers list
2. all the invokers in disabled invokers list should be removed in the valid invokers list
3. all the invokers disappeared from total invokers should be removed in the need to reconnect list
4. all the invokers disappeared from total invokers should be removed in the disabled invokers list
|
void |
setConsumerUrl(org.apache.dubbo.common.URL consumerUrl) |
void |
setRouterChain(RouterChain<T> routerChain) |
getAllInvokers, getInterface, isEmpty, isNotificationReceived, isServiceDiscoverypublic AbstractDirectory(org.apache.dubbo.common.URL url)
public AbstractDirectory(org.apache.dubbo.common.URL url,
boolean isUrlFromRegistry)
public AbstractDirectory(org.apache.dubbo.common.URL url,
RouterChain<T> routerChain,
boolean isUrlFromRegistry)
public List<Invoker<T>> list(Invocation invocation) throws RpcException
Directorylist 在接口中 Directory<T>RpcExceptionpublic org.apache.dubbo.common.URL getUrl()
getUrl 在接口中 org.apache.dubbo.common.Nodepublic RouterChain<T> getRouterChain()
getRouterChain 在接口中 Directory<T>public void setRouterChain(RouterChain<T> routerChain)
public org.apache.dubbo.common.URL getConsumerUrl()
getConsumerUrl 在接口中 Directory<T>public void setConsumerUrl(org.apache.dubbo.common.URL consumerUrl)
public boolean isDestroyed()
isDestroyed 在接口中 Directory<T>public void destroy()
destroy 在接口中 org.apache.dubbo.common.Nodepublic void discordAddresses()
discordAddresses 在接口中 Directory<T>public void addInvalidateInvoker(Invoker<T> invoker)
DirectoryaddInvalidateInvoker 在接口中 Directory<T>invoker - invoker to invalidatepublic void checkConnectivity()
public void refreshInvoker()
public void addDisabledInvoker(Invoker<T> invoker)
DirectoryaddDisabledInvoker 在接口中 Directory<T>invoker - invoker to invalidatepublic void recoverDisabledInvoker(Invoker<T> invoker)
DirectoryrecoverDisabledInvoker 在接口中 Directory<T>invoker - invoker to invalidate@Deprecated public Semaphore getCheckConnectivityPermit()
@Deprecated public ScheduledFuture<?> getConnectivityCheckFuture()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.