Class AlarmNorthbounder
- java.lang.Object
-
- org.opennms.netmgt.alarmd.api.support.AbstractNorthbounder
-
- org.opennms.features.amqp.alarmnorthbounder.AlarmNorthbounder
-
- All Implemented Interfaces:
Runnable,Northbounder,StatusFactory<NorthboundAlarm>
public class AlarmNorthbounder extends AbstractNorthbounder
-
-
Constructor Summary
Constructors Constructor Description AlarmNorthbounder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaccepts(NorthboundAlarm alarm)Accepts.voidforwardAlarms(List<NorthboundAlarm> alarms)Forward alarms.DefaultAlarmForwardergetAlarmForwarder()booleanisReady()Used to determine if the northbounder is ready to accept alarms.voidsetAlarmForwarder(DefaultAlarmForwarder alarmForwarder)-
Methods inherited from class org.opennms.netmgt.alarmd.api.support.AbstractNorthbounder
createMapping, createSyncLostMessage, discard, getName, onAlarm, onPostStart, onPreStart, onStop, preserve, reloadConfig, run, setMaxBatchSize, setMaxPreservedAlarms, setNaglesDelay, setRetryInterval, start, stop
-
-
-
-
Method Detail
-
accepts
protected boolean accepts(NorthboundAlarm alarm)
Description copied from class:AbstractNorthbounderAccepts.- Specified by:
acceptsin classAbstractNorthbounder- Parameters:
alarm- the alarm- Returns:
- true, if successful
-
forwardAlarms
public void forwardAlarms(List<NorthboundAlarm> alarms) throws NorthbounderException
Description copied from class:AbstractNorthbounderForward alarms.- Specified by:
forwardAlarmsin classAbstractNorthbounder- Parameters:
alarms- the alarms- Throws:
NorthbounderException- the northbounder exception
-
getAlarmForwarder
public DefaultAlarmForwarder getAlarmForwarder()
-
setAlarmForwarder
public void setAlarmForwarder(DefaultAlarmForwarder alarmForwarder)
-
isReady
public boolean isReady()
Description copied from interface:NorthbounderUsed to determine if the northbounder is ready to accept alarms. If no northbounders are ready, the caller can save resources by not creating and initializing theNorthboundAlarms. This method is called once after northbounder is registered and started. If the status were to change sometime after, the northbounder must re-register itself.- Returns:
trueif the northbounder is ready to accept alarms,falseotherwise.
-
-