Package org.opennms.netmgt.ticketd
Class DroolsTicketerServiceLayer
- java.lang.Object
-
- org.opennms.netmgt.ticketd.DefaultTicketerServiceLayer
-
- org.opennms.netmgt.ticketd.DroolsTicketerServiceLayer
-
- All Implemented Interfaces:
TicketerServiceLayer
,org.springframework.beans.factory.InitializingBean
public class DroolsTicketerServiceLayer extends DefaultTicketerServiceLayer
OpenNMS Trouble Ticket API implementation.- Author:
- jwhite
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.ticketd.DefaultTicketerServiceLayer
COMMS_ERROR_UEI, SKIP_CLOSE_WHEN_NOT_CLEARED_SYS_PROP, SKIP_CREATE_WHEN_CLEARED_SYS_PROP
-
-
Constructor Summary
Constructors Constructor Description DroolsTicketerServiceLayer()
DroolsTicketerServiceLayer(DroolsTicketerConfigDao configDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Ticket
createTicketFromAlarm(OnmsAlarm alarm, Map<String,String> attributes)
Called from API implemented method after successful retrieval of Alarm.DroolsTicketerConfigDao
getConfigDao()
void
reloadTicketer()
Implement to reload ticketer when requested.-
Methods inherited from class org.opennms.netmgt.ticketd.DefaultTicketerServiceLayer
afterPropertiesSet, cancelTicketForAlarm, closeTicketForAlarm, createTicketForAlarm, getEventIpcManager, setAlarmDao, setAlarmEntityNotifier, setEventIpcManager, setTicketerPlugin, updateTicketForAlarm
-
-
-
-
Constructor Detail
-
DroolsTicketerServiceLayer
public DroolsTicketerServiceLayer()
-
DroolsTicketerServiceLayer
public DroolsTicketerServiceLayer(DroolsTicketerConfigDao configDao)
-
-
Method Detail
-
getConfigDao
public DroolsTicketerConfigDao getConfigDao()
-
reloadTicketer
public void reloadTicketer()
Description copied from class:DefaultTicketerServiceLayer
Implement to reload ticketer when requested.- Specified by:
reloadTicketer
in interfaceTicketerServiceLayer
- Overrides:
reloadTicketer
in classDefaultTicketerServiceLayer
-
createTicketFromAlarm
protected Ticket createTicketFromAlarm(OnmsAlarm alarm, Map<String,String> attributes)
Called from API implemented method after successful retrieval of Alarm.- Overrides:
createTicketFromAlarm
in classDefaultTicketerServiceLayer
- Parameters:
alarm
- OpenNMS Model class alarmattributes
-- Returns:
- OpenNMS Ticket processed by Drools logic.
-
-