Package org.opennms.netmgt.alarmd.api
Interface AlarmPersisterExtension
-
public interface AlarmPersisterExtension
This interface allows extensions to modify the alarm after alarmd has created the alarm, or updated it with a reduced event, but before it is persisted. This can be used to add additional logic and set additional fields on the alarms before other processes and components are notified. Implementations must be thread safe since alarmd will issue these callbacks over many threads.- Author:
- jwhite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
afterAlarmCreated(OnmsAlarm alarm, Event event, OnmsEvent dbEvent)
Invoked by the AlarmPersister after the alarm has been created, but *before* the call the save the object via the DAO is made.void
afterAlarmUpdated(OnmsAlarm alarm, Event event, OnmsEvent dbEvent)
Invoked by the AlarmPersister after the alarm has been updated, but *before* the call the save the object via the DAO is made.
-
-
-
Method Detail
-
afterAlarmCreated
void afterAlarmCreated(OnmsAlarm alarm, Event event, OnmsEvent dbEvent)
Invoked by the AlarmPersister after the alarm has been created, but *before* the call the save the object via the DAO is made.- Parameters:
alarm
- the alarm that was createdevent
- the event that triggered the alarmdbEvent
- the database entity associated with the given event
-
afterAlarmUpdated
void afterAlarmUpdated(OnmsAlarm alarm, Event event, OnmsEvent dbEvent)
Invoked by the AlarmPersister after the alarm has been updated, but *before* the call the save the object via the DAO is made.- Parameters:
alarm
- the alarm that was updateevent
- the event that triggered the update to the alarmdbEvent
- the database entity associated with the given event
-
-