public class AlarmNorthbounder extends AbstractNorthbounder
Constructor and Description |
---|
AlarmNorthbounder() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accepts(NorthboundAlarm alarm)
Accepts.
|
void |
forwardAlarms(List<NorthboundAlarm> alarms)
Forward alarms.
|
DefaultAlarmForwarder |
getAlarmForwarder() |
boolean |
isReady()
Used to determine if the northbounder is ready to accept alarms.
|
void |
setAlarmForwarder(DefaultAlarmForwarder alarmForwarder) |
createMapping, createSyncLostMessage, discard, getName, onAlarm, onPostStart, onPreStart, onStop, preserve, reloadConfig, run, setMaxBatchSize, setMaxPreservedAlarms, setNaglesDelay, setRetryInterval, start, stop
protected boolean accepts(NorthboundAlarm alarm)
AbstractNorthbounder
accepts
in class AbstractNorthbounder
alarm
- the alarmpublic void forwardAlarms(List<NorthboundAlarm> alarms) throws NorthbounderException
AbstractNorthbounder
forwardAlarms
in class AbstractNorthbounder
alarms
- the alarmsNorthbounderException
- the northbounder exceptionpublic DefaultAlarmForwarder getAlarmForwarder()
public void setAlarmForwarder(DefaultAlarmForwarder alarmForwarder)
public boolean isReady()
Northbounder
NorthboundAlarm
s.
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.true
if the northbounder is ready to accept alarms, false
otherwise.Copyright © 2021. All rights reserved.