public class SyslogNorthbounder 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 |
---|
SyslogNorthbounder(SyslogNorthbounderConfigDao configDao,
String destination)
Instantiates a new Syslog 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.
|
SyslogNorthbounderConfig |
getConfig()
Gets the Syslog 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 SyslogNorthbounder(SyslogNorthbounderConfigDao configDao, String destination)
configDao
- the Syslog configuration DAOdestination
- the destinationpublic 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 SyslogNorthbounderConfig getConfig()
Copyright © 2017. All rights reserved.