Package org.opennms.netmgt.dao.api
Interface AlarmRepository
-
- All Known Implementing Classes:
AlarmRepositoryHibernate
public interface AlarmRepository
WebAlarmRepository @author brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
acknowledgeAlarms(int[] alarmIds, String user, Date timestamp)
Acknowledge Alarms.void
acknowledgeAll(String user, Date timestamp)
Acknowledge all the alarms.void
acknowledgeMatchingAlarms(String user, Date timestamp, OnmsCriteria criteria)
Acknowledge alarms matching a specific criteria.void
clearAlarms(int[] alarmIds, String user, Date timestamp)
Clear Alarmsint
countMatchingAlarms(OnmsCriteria criteria)
Count alarms matching a criteria.int[]
countMatchingAlarmsBySeverity(OnmsCriteria criteria)
Count alarms by severity matching a specific criteria.void
escalateAlarms(int[] alarmIds, String user, Date timestamp)
Escalate Alarms.List<OnmsAcknowledgment>
getAcknowledgments(int alarmId)
Gets the acknowledgments.OnmsAlarm
getAlarm(int alarmId)
Gets and alarm.List<AlarmSummary>
getCurrentNodeAlarmSummaries()
Gets the current node alarm summaries.List<SituationSummary>
getCurrentSituationSummaries()
Gets the current node alarm summaries.OnmsAlarm[]
getMatchingAlarms(OnmsCriteria criteria)
Gets alarms matching a specific criteria.void
removeReductionKeyMemo(int alarmId)
Removes the reduction key memo.void
removeStickyMemo(Integer alarmId)
Removes the sticky memo.void
unacknowledgeAlarms(int[] alarmIds, String user)
Unacknowledge Alarmsvoid
unacknowledgeAll(String user)
Unacknowledge all the alarms.void
unacknowledgeMatchingAlarms(OnmsCriteria criteria, String user)
Unacknowledge Matching Alarmsvoid
updateReductionKeyMemo(Integer alarmId, String body, String user)
Updates the ReductionKeyMemo of the alarm to persistence.void
updateStickyMemo(Integer alarmId, String body, String user)
Updates the StickyMemo of the alarm to persistence.
-
-
-
Method Detail
-
countMatchingAlarms
int countMatchingAlarms(OnmsCriteria criteria)
Count alarms matching a criteria.- Parameters:
criteria
- the criteria- Returns:
- the amount of alarms
-
countMatchingAlarmsBySeverity
int[] countMatchingAlarmsBySeverity(OnmsCriteria criteria)
Count alarms by severity matching a specific criteria.- Parameters:
criteria
- the criteria- Returns:
- an array with the amount of alarms per severity.
-
getAlarm
OnmsAlarm getAlarm(int alarmId)
Gets and alarm.- Parameters:
alarmId
- the alarm id- Returns:
- the alarm object
-
getMatchingAlarms
OnmsAlarm[] getMatchingAlarms(OnmsCriteria criteria)
Gets alarms matching a specific criteria.- Parameters:
criteria
- the criteria- Returns:
- a array with matching alarms
-
acknowledgeMatchingAlarms
void acknowledgeMatchingAlarms(String user, Date timestamp, OnmsCriteria criteria)
Acknowledge alarms matching a specific criteria.- Parameters:
user
- the usertimestamp
- the timestampcriteria
- the criteria
-
acknowledgeAlarms
void acknowledgeAlarms(int[] alarmIds, String user, Date timestamp)
Acknowledge Alarms.- Parameters:
alarmIds
- an array of alarms IDuser
- the usertimestamp
- the timestamp
-
acknowledgeAll
void acknowledgeAll(String user, Date timestamp)
Acknowledge all the alarms.- Parameters:
user
- the usertimestamp
- the timestamp
-
unacknowledgeMatchingAlarms
void unacknowledgeMatchingAlarms(OnmsCriteria criteria, String user)
Unacknowledge Matching Alarms.- Parameters:
criteria
- the criteriauser
- the user
-
unacknowledgeAlarms
void unacknowledgeAlarms(int[] alarmIds, String user)
Unacknowledge Alarms- Parameters:
alarmIds
- an array of alarms IDuser
- the user
-
unacknowledgeAll
void unacknowledgeAll(String user)
Unacknowledge all the alarms.- Parameters:
user
- the user
-
escalateAlarms
void escalateAlarms(int[] alarmIds, String user, Date timestamp)
Escalate Alarms.- Parameters:
alarmIds
- an array of alarms IDuser
- the usertimestamp
- the timestamp
-
clearAlarms
void clearAlarms(int[] alarmIds, String user, Date timestamp)
Clear Alarms- Parameters:
alarmIds
- an array of alarms IDuser
- the usertimestamp
- the timestamp
-
updateStickyMemo
void updateStickyMemo(Integer alarmId, String body, String user)
Updates the StickyMemo of the alarm to persistence.- Parameters:
alarmId
- the alarmId of the alarm where the StickyMemo has to be persisted.
-
updateReductionKeyMemo
void updateReductionKeyMemo(Integer alarmId, String body, String user)
Updates the ReductionKeyMemo of the alarm to persistence. ReductionKeyMemo aka JournalMemo.- Parameters:
alarmId
- the alarm idbody
- the bodyuser
- the user
-
removeStickyMemo
void removeStickyMemo(Integer alarmId)
Removes the sticky memo.- Parameters:
alarmId
- the alarm id
-
removeReductionKeyMemo
void removeReductionKeyMemo(int alarmId)
Removes the reduction key memo.- Parameters:
alarmId
- the alarm id
-
getAcknowledgments
List<OnmsAcknowledgment> getAcknowledgments(int alarmId)
Gets the acknowledgments.- Parameters:
alarmId
- the alarm id- Returns:
- the acknowledgments
-
getCurrentNodeAlarmSummaries
List<AlarmSummary> getCurrentNodeAlarmSummaries()
Gets the current node alarm summaries.- Returns:
- the current node alarm summaries
-
getCurrentSituationSummaries
List<SituationSummary> getCurrentSituationSummaries()
Gets the current node alarm summaries.- Returns:
- the current node alarm summaries
-
-