T - the type of service interfacepublic class ScopeClusterInvoker<T> extends Object implements ClusterInvoker<T>, ExporterChangeListener
It selects between local and remote invoker at runtime.
| 构造器和说明 |
|---|
ScopeClusterInvoker(Directory<T> directory,
Invoker<T> invoker) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
Directory<T> |
getDirectory() |
Class<T> |
getInterface() |
Invoker<?> |
getInvoker() |
org.apache.dubbo.common.URL |
getRegistryUrl() |
org.apache.dubbo.common.URL |
getUrl() |
Result |
invoke(Invocation invocation)
Checks if the current ScopeClusterInvoker is exported to the local JVM and invokes the corresponding Invoker.
|
boolean |
isAvailable() |
boolean |
isDestroyed() |
void |
onExporterChangeExport(Exporter<?> exporter) |
void |
onExporterChangeUnExport(Exporter<?> exporter) |
String |
toString() |
hasProxyInvokers, isServiceDiscoverypublic org.apache.dubbo.common.URL getUrl()
getUrl 在接口中 org.apache.dubbo.common.Nodepublic org.apache.dubbo.common.URL getRegistryUrl()
getRegistryUrl 在接口中 ClusterInvoker<T>public Directory<T> getDirectory()
getDirectory 在接口中 ClusterInvoker<T>public boolean isDestroyed()
isDestroyed 在接口中 ClusterInvoker<T>public boolean isAvailable()
isAvailable 在接口中 org.apache.dubbo.common.Nodepublic void destroy()
destroy 在接口中 org.apache.dubbo.common.Nodepublic Class<T> getInterface()
getInterface 在接口中 Invoker<T>public Result invoke(Invocation invocation) throws RpcException
invoke 在接口中 Invoker<T>invocation - the invocation to be performedRpcException - if there was an error during the invocationpublic void onExporterChangeExport(Exporter<?> exporter)
onExporterChangeExport 在接口中 ExporterChangeListenerpublic void onExporterChangeUnExport(Exporter<?> exporter)
public Invoker<?> getInvoker()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.