public class TrapSinkModule extends AbstractXmlSinkModule<TrapInformationWrapper,TrapLogDTO>
HEARTBEAT_MODULE_ID
Constructor and Description |
---|
TrapSinkModule(TrapdConfig trapdConfig,
OnmsDistPoller distPoller) |
Modifier and Type | Method and Description |
---|---|
AggregationPolicy<TrapInformationWrapper,TrapLogDTO,TrapLogDTO> |
getAggregationPolicy()
Defines how messages should be combined, and when they
should be "released".
|
AsyncPolicy |
getAsyncPolicy()
Defines how messages should be asynchronously dispatched.
|
String |
getId()
Globally unique identifier.
|
int |
getNumConsumerThreads()
The number of threads used to consume from the broker.
|
TrapInformationWrapper |
unmarshalSingleMessage(byte[] bytes)
Modules with different aggregated message should override this method
|
equals, hashCode, marshal, marshalSingleMessage, unmarshal
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getRoutingKey
public TrapSinkModule(TrapdConfig trapdConfig, OnmsDistPoller distPoller)
public String getId()
SinkModule
public int getNumConsumerThreads()
SinkModule
public AggregationPolicy<TrapInformationWrapper,TrapLogDTO,TrapLogDTO> getAggregationPolicy()
SinkModule
null
.AggregationPolicy
used to combine messages, or null
if the messages should not be combined.public TrapInformationWrapper unmarshalSingleMessage(byte[] bytes)
AbstractXmlSinkModule
unmarshalSingleMessage
in interface SinkModule<TrapInformationWrapper,TrapLogDTO>
unmarshalSingleMessage
in class AbstractXmlSinkModule<TrapInformationWrapper,TrapLogDTO>
public AsyncPolicy getAsyncPolicy()
SinkModule
AsyncPolicy
used when asynchronously dispatching
messages for this module.Copyright © 2021. All rights reserved.