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, unmarshalclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetRoutingKeypublic TrapSinkModule(TrapdConfig trapdConfig, OnmsDistPoller distPoller)
public String getId()
SinkModulepublic int getNumConsumerThreads()
SinkModulepublic AggregationPolicy<TrapInformationWrapper,TrapLogDTO,TrapLogDTO> getAggregationPolicy()
SinkModulenull.AggregationPolicy used to combine messages, or null
 if the messages should not be combined.public TrapInformationWrapper unmarshalSingleMessage(byte[] bytes)
AbstractXmlSinkModuleunmarshalSingleMessage in interface SinkModule<TrapInformationWrapper,TrapLogDTO>unmarshalSingleMessage in class AbstractXmlSinkModule<TrapInformationWrapper,TrapLogDTO>public AsyncPolicy getAsyncPolicy()
SinkModuleAsyncPolicy used when asynchronously dispatching
 messages for this module.Copyright © 2021. All rights reserved.