类 MockClusterInvoker<T>
- java.lang.Object
-
- org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker<T>
-
- 所有已实现的接口:
Node
,ClusterInvoker<T>
,Invoker<T>
public class MockClusterInvoker<T> extends Object implements ClusterInvoker<T>
-
-
构造器概要
构造器 构造器 说明 MockClusterInvoker(Directory<T> directory, Invoker<T> invoker)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
destroy()
destroy.Directory<T>
getDirectory()
Class<T>
getInterface()
get service interface.URL
getRegistryUrl()
URL
getUrl()
get url.Result
invoke(Invocation invocation)
invoke.boolean
isAvailable()
is available.boolean
isDestroyed()
String
toString()
-
从接口继承的方法 org.apache.dubbo.rpc.cluster.ClusterInvoker
hasProxyInvokers, isServiceDiscovery
-
-
-
-
方法详细资料
-
getRegistryUrl
public URL getRegistryUrl()
- 指定者:
getRegistryUrl
在接口中ClusterInvoker<T>
-
getDirectory
public Directory<T> getDirectory()
- 指定者:
getDirectory
在接口中ClusterInvoker<T>
-
isDestroyed
public boolean isDestroyed()
- 指定者:
isDestroyed
在接口中ClusterInvoker<T>
-
isAvailable
public boolean isAvailable()
从接口复制的说明:Node
is available.- 指定者:
isAvailable
在接口中Node
- 返回:
- available.
-
getInterface
public Class<T> getInterface()
从接口复制的说明:Invoker
get service interface.- 指定者:
getInterface
在接口中Invoker<T>
- 返回:
- service interface.
-
invoke
public Result invoke(Invocation invocation) throws RpcException
从接口复制的说明:Invoker
invoke.- 指定者:
invoke
在接口中Invoker<T>
- 返回:
- result
- 抛出:
RpcException
-
-