public class SnmpTrapNorthbounder extends AbstractNorthbounder implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected static String |
NBI_NAME
The Constant NBI_NAME.
|
Constructor and Description |
---|
SnmpTrapNorthbounder(SnmpTrapNorthbounderConfigDao configDao,
String trapSink)
Instantiates a new SNMP Trap northbounder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(NorthboundAlarm alarm)
The abstraction makes a call here to determine if the alarm should be placed on the queue of alarms to be sent northerly.
|
void |
afterPropertiesSet() |
void |
forwardAlarms(List<NorthboundAlarm> alarms)
Each implementation of the AbstractNorthbounder has a nice queue (Nagle's algorithmic) and the worker thread that processes the queue
calls this method to send alarms to the northern NMS.
|
SnmpTrapNorthbounderConfig |
getConfig()
Gets the configuration.
|
createMapping, createSyncLostMessage, discard, getName, onAlarm, onPostStart, onPreStart, onStop, preserve, reloadConfig, run, setMaxBatchSize, setMaxPreservedAlarms, setNaglesDelay, setRetryInterval, start, stop
protected static final String NBI_NAME
public SnmpTrapNorthbounder(SnmpTrapNorthbounderConfigDao configDao, String trapSink)
configDao
- the SNMP Trap configuration DAOtrapSink
- the trap sinkpublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public boolean accepts(NorthboundAlarm alarm)
accepts
in class AbstractNorthbounder
alarm
- the alarmpublic void forwardAlarms(List<NorthboundAlarm> alarms) throws NorthbounderException
forwardAlarms
in class AbstractNorthbounder
alarms
- the alarmsNorthbounderException
- the northbounder exceptionpublic SnmpTrapNorthbounderConfig getConfig()
Copyright © 2017. All rights reserved.