类 MockInvoker<T>
-
- com.alibaba.dubbo.rpc.support.MockInvoker<T>
-
-
构造器概要
构造器 构造器 说明 MockInvoker(URL url)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 void
destroy()
destroy.<T>
getInterface()
get service interface.static
mockService, serviceType)
static
throwstr)
URL
getUrl()
get url.Result
invoke(Invocation invocation)
invoke.boolean
isAvailable()
is available.static
mock)
Normalize mock string: return => return null fail => default force => default fail:throw/return foo => throw/return foo force:throw/return foo => throw/return foostatic
mock)
static
mock, [] returnTypes)
-
-
-
构造器详细资料
-
MockInvoker
public MockInvoker(URL url)
-
-
方法详细资料
-
parseMockValue
public static parseMockValue( mock) throws
- 抛出:
-
parseMockValue
public static parseMockValue( mock, [] returnTypes) throws
- 抛出:
-
invoke
public Result invoke(Invocation invocation) throws RpcException
从接口复制的说明:Invoker
invoke.- 指定者:
invoke
在接口中Invoker<T>
- 返回:
- result
- 抛出:
RpcException
-
getThrowable
public static getThrowable( throwstr)
-
getMockObject
public static getMockObject( mockService, serviceType)
-
normalizeMock
public static normalizeMock( mock)
Normalize mock string:- return => return null
- fail => default
- force => default
- fail:throw/return foo => throw/return foo
- force:throw/return foo => throw/return foo
- 参数:
mock
- mock string- 返回:
- normalized mock string
-
isAvailable
public boolean isAvailable()
从接口复制的说明:Node
is available.- 指定者:
isAvailable
在接口中Node
- 返回:
- available.
-
getInterface
public <T> getInterface()
从接口复制的说明:Invoker
get service interface.- 指定者:
getInterface
在接口中Invoker<T>
- 返回:
- service interface.
-
-