Package org.opennms.netmgt.alarmd.api
Interface Northbounder
-
- All Known Implementing Classes:
AbstractNorthbounder,AlarmNorthbounder,BSFNorthbounder,BSFNorthbounderManager,DroolsNorthbounder,DroolsNorthbounderManager,EmailNorthbounder,EmailNorthbounderManager,HttpNorthbounder,JmsNorthbounder,JmsNorthbounderManager,SnmpTrapNorthbounder,SnmpTrapNorthbounderManager,SyslogNorthbounder,SyslogNorthbounderManager
public interface NorthbounderNorth bound Interface API.- Author:
- David Hustace
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Gets the name.booleanisReady()Used to determine if the northbounder is ready to accept alarms.voidonAlarm(NorthboundAlarm alarm)On alarm.voidreloadConfig()Reloads configuration.voidstart()Start.voidstop()Stop.
-
-
-
Method Detail
-
start
void start() throws NorthbounderExceptionStart.- Throws:
NorthbounderException- the northbounder exception
-
isReady
boolean isReady()
Used 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.
-
onAlarm
void onAlarm(NorthboundAlarm alarm) throws NorthbounderException
On alarm.- Parameters:
alarm- the alarm- Throws:
NorthbounderException- the northbounder exception
-
stop
void stop() throws NorthbounderException
Stop.- Throws:
NorthbounderException- the northbounder exception
-
getName
String getName()
Gets the name.- Returns:
- the name
-
reloadConfig
void reloadConfig() throws NorthbounderExceptionReloads configuration.- Throws:
NorthbounderException
-
-