Package org.opennms.core.rpc.camel
Class CamelRpcClientFactory
- java.lang.Object
-
- org.opennms.core.rpc.camel.CamelRpcClientFactory
-
- All Implemented Interfaces:
RpcClientFactory
public class CamelRpcClientFactory extends java.lang.Object implements RpcClientFactory
-
-
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 CamelRpcClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends RpcRequest,T extends RpcResponse>
RpcClient<S,T>getClient(RpcModule<S,T> module)
com.codahale.metrics.MetricRegistry
getMetrics()
TracerRegistry
getTracerRegistry()
void
setLocation(java.lang.String location)
void
setMetrics(com.codahale.metrics.MetricRegistry metrics)
void
setTracerRegistry(TracerRegistry tracerRegistry)
void
start()
void
stop()
-
-
-
Method Detail
-
getClient
public <S extends RpcRequest,T extends RpcResponse> RpcClient<S,T> getClient(RpcModule<S,T> module)
- Specified by:
getClient
in interfaceRpcClientFactory
-
getTracerRegistry
public TracerRegistry getTracerRegistry()
-
setTracerRegistry
public void setTracerRegistry(TracerRegistry tracerRegistry)
-
getMetrics
public com.codahale.metrics.MetricRegistry getMetrics()
-
setMetrics
public void setMetrics(com.codahale.metrics.MetricRegistry metrics)
-
setLocation
public void setLocation(java.lang.String location)
-
start
public void start()
-
stop
public void stop()
-
-