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 java.lang.Object implements AlarmService
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.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, java.util.Date now)
void
clearAlarm(OnmsAlarm alarm, java.util.Date now)
void
debug(java.lang.String message, java.lang.Object... objects)
void
deleteAlarm(OnmsAlarm alarm)
void
escalateAlarm(OnmsAlarm alarm, java.util.Date now)
void
info(java.lang.String message, java.lang.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, java.util.Date now)
void
unacknowledgeAlarm(OnmsAlarm alarm, java.util.Date now)
void
unclearAlarm(OnmsAlarm alarm, java.util.Date now)
void
warn(java.lang.String message, java.lang.Object... objects)
-
-
-
Field Detail
-
DEFAULT_USER
protected static final java.lang.String DEFAULT_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
clearAlarm
@Transactional public void clearAlarm(OnmsAlarm alarm, java.util.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, java.util.Date now)
- Specified by:
unclearAlarm
in interfaceAlarmService
-
escalateAlarm
@Transactional public void escalateAlarm(OnmsAlarm alarm, java.util.Date now)
- Specified by:
escalateAlarm
in interfaceAlarmService
-
acknowledgeAlarm
@Transactional public void acknowledgeAlarm(OnmsAlarm alarm, java.util.Date now)
- Specified by:
acknowledgeAlarm
in interfaceAlarmService
-
unacknowledgeAlarm
@Transactional public void unacknowledgeAlarm(OnmsAlarm alarm, java.util.Date now)
- Specified by:
unacknowledgeAlarm
in interfaceAlarmService
-
setSeverity
@Transactional public void setSeverity(OnmsAlarm alarm, OnmsSeverity severity, java.util.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(java.lang.String message, java.lang.Object... objects)
- Specified by:
debug
in interfaceAlarmService
-
info
public void info(java.lang.String message, java.lang.Object... objects)
- Specified by:
info
in interfaceAlarmService
-
warn
public void warn(java.lang.String message, java.lang.Object... objects)
- Specified by:
warn
in interfaceAlarmService
-
setEventForwarder
public void setEventForwarder(EventForwarder eventForwarder)
-
-