public class MockClusterInvoker<T> extends Object implements ClusterInvoker<T>
| Constructor and Description |
|---|
MockClusterInvoker(Directory<T> directory,
Invoker<T> invoker) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Directory<T> |
getDirectory() |
Class<T> |
getInterface() |
org.apache.dubbo.common.URL |
getRegistryUrl() |
org.apache.dubbo.common.URL |
getUrl() |
Result |
invoke(Invocation invocation) |
boolean |
isAvailable() |
boolean |
isDestroyed() |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waithasProxyInvokers, isServiceDiscoverydestroyAllpublic org.apache.dubbo.common.URL getUrl()
getUrl in interface org.apache.dubbo.common.Nodepublic org.apache.dubbo.common.URL getRegistryUrl()
getRegistryUrl in interface ClusterInvoker<T>public Directory<T> getDirectory()
getDirectory in interface ClusterInvoker<T>public boolean isDestroyed()
isDestroyed in interface ClusterInvoker<T>public boolean isAvailable()
isAvailable in interface org.apache.dubbo.common.Nodepublic void destroy()
destroy in interface org.apache.dubbo.common.Nodepublic Class<T> getInterface()
getInterface in interface Invoker<T>public Result invoke(Invocation invocation) throws RpcException
invoke in interface Invoker<T>RpcExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.