public abstract class AbstractDirectory<T> extends Object implements Directory<T>
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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()
Deprecated.
|
ScheduledFuture<?> |
getConnectivityCheckFuture()
Deprecated.
|
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.
|
void |
setConsumerUrl(org.apache.dubbo.common.URL consumerUrl) |
void |
setRouterChain(RouterChain<T> routerChain) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllInvokers, 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 in interface Directory<T>RpcExceptionpublic org.apache.dubbo.common.URL getUrl()
getUrl in interface org.apache.dubbo.common.Nodepublic RouterChain<T> getRouterChain()
getRouterChain in interface Directory<T>public void setRouterChain(RouterChain<T> routerChain)
public org.apache.dubbo.common.URL getConsumerUrl()
getConsumerUrl in interface Directory<T>public void setConsumerUrl(org.apache.dubbo.common.URL consumerUrl)
public boolean isDestroyed()
isDestroyed in interface Directory<T>public void destroy()
destroy in interface org.apache.dubbo.common.Nodepublic void discordAddresses()
discordAddresses in interface Directory<T>public void addInvalidateInvoker(Invoker<T> invoker)
DirectoryaddInvalidateInvoker in interface Directory<T>invoker - invoker to invalidatepublic void checkConnectivity()
public void refreshInvoker()
public void addDisabledInvoker(Invoker<T> invoker)
DirectoryaddDisabledInvoker in interface Directory<T>invoker - invoker to invalidatepublic void recoverDisabledInvoker(Invoker<T> invoker)
DirectoryrecoverDisabledInvoker in interface Directory<T>invoker - invoker to invalidate@Deprecated public Semaphore getCheckConnectivityPermit()
@Deprecated public ScheduledFuture<?> getConnectivityCheckFuture()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.