Package org.opennms.netmgt.alarmd.drools
Class DefaultAlarmService
- java.lang.Object
-
- org.opennms.netmgt.alarmd.drools.DefaultAlarmService
-
- All Implemented Interfaces:
AlarmService
public class DefaultAlarmService extends Object implements AlarmService
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_USER
-
Constructor Summary
Constructors Constructor Description DefaultAlarmService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acknowledgeAlarm(OnmsAlarm alarm, Date now)
void
clearAlarm(OnmsAlarm alarm, Date now)
void
debug(String message, Object... objects)
void
deleteAlarm(OnmsAlarm alarm)
void
escalateAlarm(OnmsAlarm alarm, Date now)
void
info(String message, Object... objects)
void
sendEvent(Event e)
Asynchronously broadcast the given event.void
setAcknowledgmentDao(AcknowledgmentDao acknowledgmentDao)
void
setAlarmDao(AlarmDao alarmDao)
void
setAlarmEntityNotifier(AlarmEntityNotifier alarmEntityNotifier)
void
setEventForwarder(EventForwarder eventForwarder)
void
setSeverity(OnmsAlarm alarm, OnmsSeverity severity, Date now)
void
unacknowledgeAlarm(OnmsAlarm alarm, Date now)
void
unclearAlarm(OnmsAlarm alarm, Date now)
void
warn(String message, Object... objects)
-
-
-
Field Detail
-
DEFAULT_USER
protected static final String DEFAULT_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
clearAlarm
@Transactional public void clearAlarm(OnmsAlarm alarm, Date now)
- Specified by:
clearAlarm
in interfaceAlarmService
-
deleteAlarm
@Transactional public void deleteAlarm(OnmsAlarm alarm)
- Specified by:
deleteAlarm
in interfaceAlarmService
-
unclearAlarm
@Transactional public void unclearAlarm(OnmsAlarm alarm, Date now)
- Specified by:
unclearAlarm
in interfaceAlarmService
-
escalateAlarm
@Transactional public void escalateAlarm(OnmsAlarm alarm, Date now)
- Specified by:
escalateAlarm
in interfaceAlarmService
-
acknowledgeAlarm
@Transactional public void acknowledgeAlarm(OnmsAlarm alarm, Date now)
- Specified by:
acknowledgeAlarm
in interfaceAlarmService
-
unacknowledgeAlarm
@Transactional public void unacknowledgeAlarm(OnmsAlarm alarm, Date now)
- Specified by:
unacknowledgeAlarm
in interfaceAlarmService
-
setSeverity
@Transactional public void setSeverity(OnmsAlarm alarm, OnmsSeverity severity, Date now)
- Specified by:
setSeverity
in interfaceAlarmService
-
sendEvent
public void sendEvent(Event e)
Description copied from interface:AlarmService
Asynchronously broadcast the given event.- Specified by:
sendEvent
in interfaceAlarmService
- Parameters:
e
- event to broadcast
-
setAlarmDao
public void setAlarmDao(AlarmDao alarmDao)
-
setAcknowledgmentDao
public void setAcknowledgmentDao(AcknowledgmentDao acknowledgmentDao)
-
setAlarmEntityNotifier
public void setAlarmEntityNotifier(AlarmEntityNotifier alarmEntityNotifier)
-
debug
public void debug(String message, Object... objects)
- Specified by:
debug
in interfaceAlarmService
-
info
public void info(String message, Object... objects)
- Specified by:
info
in interfaceAlarmService
-
warn
public void warn(String message, Object... objects)
- Specified by:
warn
in interfaceAlarmService
-
setEventForwarder
public void setEventForwarder(EventForwarder eventForwarder)
-
-