Package org.opennms.core.rpc.mock
Class MockRpcClientFactory
- java.lang.Object
-
- org.opennms.core.rpc.mock.MockRpcClientFactory
-
- All Implemented Interfaces:
RpcClientFactory
public class MockRpcClientFactory extends java.lang.Object implements RpcClientFactory
ARpcClientFactory
implementation that always executes the requests locally.- Author:
- jwhite
-
-
Field Summary
-
Fields inherited from interface org.opennms.core.rpc.api.RpcClientFactory
JMX_DOMAIN_RPC, LOG_PREFIX, RPC_DURATION, RPC_FAILED, RPC_REQUEST_SENT, RPC_REQUEST_SIZE, RPC_REQUESTS_RECEIVED, RPC_RESPONSE_SIZE
-
-
Constructor Summary
Constructors Constructor Description MockRpcClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R extends RpcRequest,S extends RpcResponse>
RpcClient<R,S>getClient(RpcModule<R,S> module)
-
-
-
Method Detail
-
getClient
public <R extends RpcRequest,S extends RpcResponse> RpcClient<R,S> getClient(RpcModule<R,S> module)
- Specified by:
getClient
in interfaceRpcClientFactory
-
-