Package org.opennms.core.ipc.grpc.server
Class GrpcLocalDispatcherFactory
- java.lang.Object
-
- org.opennms.core.ipc.sink.common.AbstractMessageDispatcherFactory<java.lang.Void>
-
- org.opennms.core.ipc.grpc.server.GrpcLocalDispatcherFactory
-
- All Implemented Interfaces:
MessageDispatcherFactory
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class GrpcLocalDispatcherFactory extends AbstractMessageDispatcherFactory<java.lang.Void> implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
-
-
Constructor Summary
Constructors Constructor Description GrpcLocalDispatcherFactory()
GrpcLocalDispatcherFactory(OpennmsGrpcServer onmsGrpcServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
destroy()
<S extends Message,T extends Message>
voiddispatch(SinkModule<S,T> module, java.lang.Void metadata, T message)
org.osgi.framework.BundleContext
getBundleContext()
java.lang.String
getMetricDomain()
com.codahale.metrics.MetricRegistry
getMetrics()
io.opentracing.Tracer
getTracer()
void
setMetrics(com.codahale.metrics.MetricRegistry metrics)
-
Methods inherited from class org.opennms.core.ipc.sink.common.AbstractMessageDispatcherFactory
createAsyncDispatcher, createSyncDispatcher, createSyncDispatcher, getModuleMetadata, onDestroy, onInit
-
-
-
-
Constructor Detail
-
GrpcLocalDispatcherFactory
public GrpcLocalDispatcherFactory(OpennmsGrpcServer onmsGrpcServer)
-
GrpcLocalDispatcherFactory
public GrpcLocalDispatcherFactory()
-
-
Method Detail
-
dispatch
public <S extends Message,T extends Message> void dispatch(SinkModule<S,T> module, java.lang.Void metadata, T message)
- Specified by:
dispatch
in classAbstractMessageDispatcherFactory<java.lang.Void>
-
getMetricDomain
public java.lang.String getMetricDomain()
- Specified by:
getMetricDomain
in classAbstractMessageDispatcherFactory<java.lang.Void>
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
- Specified by:
getBundleContext
in classAbstractMessageDispatcherFactory<java.lang.Void>
-
getTracer
public io.opentracing.Tracer getTracer()
- Specified by:
getTracer
in classAbstractMessageDispatcherFactory<java.lang.Void>
-
getMetrics
public com.codahale.metrics.MetricRegistry getMetrics()
- Specified by:
getMetrics
in classAbstractMessageDispatcherFactory<java.lang.Void>
-
setMetrics
public void setMetrics(com.codahale.metrics.MetricRegistry metrics)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
-