Package org.opennms.netmgt.notifd
Class TicketNotificationStrategy
- java.lang.Object
-
- org.opennms.netmgt.notifd.TicketNotificationStrategy
-
- All Implemented Interfaces:
NotificationStrategy
public class TicketNotificationStrategy extends Object implements NotificationStrategy
Invoke the trouble ticketer using notifd instead of automations. This allows tickets to be used in conjunction with path-outages and esclation paths.- Version:
- $Id: $
- Author:
- Jesse White
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TicketNotificationStrategy.AlarmState
protected static class
TicketNotificationStrategy.AlarmStateRowCallbackHandler
-
Constructor Summary
Constructors Constructor Description TicketNotificationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TicketNotificationStrategy.AlarmState
getAlarmStateFromEvent(int eventID)
Helper function that gets the alarmid from the eventidprotected org.opennms.netmgt.notifd.TicketNotificationStrategy.AlarmType
getAlarmTypeFromUEI(String eventUEI)
Helper function that determines the alarm type for a given UEI.String
getName()
Return an id for this notification strategyint
send(List<Argument> arguments)
sendvoid
sendCreateTicketEvent(int alarmID, String alarmUEI)
Helper function that sends the create ticket event
-
-
-
Method Detail
-
send
public int send(List<Argument> arguments)
send
- Specified by:
send
in interfaceNotificationStrategy
- Parameters:
arguments
- aList
object.- Returns:
- a int.
-
getAlarmStateFromEvent
protected TicketNotificationStrategy.AlarmState getAlarmStateFromEvent(int eventID)
Helper function that gets the alarmid from the eventid
- Returns:
- 0 if alarmid is null
-
getAlarmTypeFromUEI
protected org.opennms.netmgt.notifd.TicketNotificationStrategy.AlarmType getAlarmTypeFromUEI(String eventUEI)
Helper function that determines the alarm type for a given UEI.
- Returns:
- 0 if alarmid is null
-
sendCreateTicketEvent
public void sendCreateTicketEvent(int alarmID, String alarmUEI)
Helper function that sends the create ticket event
-
-