@Deprecated public class JdbcWebAlarmRepository extends Object implements WebAlarmRepository, org.springframework.beans.factory.InitializingBean
JdbcWebAlarmRepository class.
Constructor and Description |
---|
JdbcWebAlarmRepository()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeAlarms(int[] alarmIds,
String user,
Date timestamp)
Deprecated.
acknowledgeAlarms
|
void |
acknowledgeAll(String user,
Date timestamp)
Deprecated.
acknowledgeAll
|
void |
acknowledgeMatchingAlarms(String user,
Date timestamp,
AlarmCriteria criteria)
Deprecated.
Acknowledge alarms matching a specific criteria.
|
void |
afterPropertiesSet()
Deprecated.
|
void |
clearAlarms(int[] alarmIds,
String user)
Deprecated.
clearAlarms
|
void |
clearAlarms(int[] alarmIds,
String user,
Date timestamp)
Deprecated.
clearAlarms
|
int |
countMatchingAlarms(AlarmCriteria criteria)
Deprecated.
Count alarms matching a criteria.
|
int[] |
countMatchingAlarmsBySeverity(AlarmCriteria criteria)
Deprecated.
Count alarms by severity matching a specific criteria.
|
void |
escalateAlarms(int[] alarmIds,
String user,
Date timestamp)
Deprecated.
escalateAlarms
|
List<OnmsAcknowledgment> |
getAcknowledgments(int alarmId)
Deprecated.
Gets the acknowledgments.
|
Alarm |
getAlarm(int alarmId)
Deprecated.
Gets and alarm.
|
List<AlarmSummary> |
getCurrentNodeAlarmSummaries()
Deprecated.
Gets the current node alarm summaries.
|
Alarm[] |
getMatchingAlarms(AlarmCriteria criteria)
Deprecated.
Gets alarms matching a specific criteria.
|
void |
removeReductionKeyMemo(int alarmId)
Deprecated.
Removes the reduction key memo.
|
void |
removeStickyMemo(Integer alarmId)
Deprecated.
Removes the sticky memo.
|
void |
unacknowledgeAlarms(int[] alarmIds,
String user)
Deprecated.
Unacknowledge Alarms
|
void |
unacknowledgeAll(String user)
Deprecated.
Unacknowledge all the alarms.
|
void |
unacknowledgeMatchingAlarms(AlarmCriteria criteria,
String user)
Deprecated.
Unacknowledge Matching Alarms
|
void |
updateReductionKeyMemo(Integer alarmId,
String body,
String user)
Deprecated.
Updates the ReductionKeyMemo of the alarm to persistence.
|
void |
updateStickyMemo(Integer alarmId,
String body,
String user)
Deprecated.
Updates the StickyMemo of the alarm to persistence.
|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void updateStickyMemo(Integer alarmId, String body, String user)
updateStickyMemo
in interface WebAlarmRepository
alarmId
- the alarmId of the alarm where the StickyMemo has to be persisted.public void updateReductionKeyMemo(Integer alarmId, String body, String user)
updateReductionKeyMemo
in interface WebAlarmRepository
alarmId
- the alarm idbody
- the bodyuser
- the userpublic void removeStickyMemo(Integer alarmId)
removeStickyMemo
in interface WebAlarmRepository
alarmId
- the alarm idpublic void removeReductionKeyMemo(int alarmId)
removeReductionKeyMemo
in interface WebAlarmRepository
alarmId
- the alarm idpublic int countMatchingAlarms(AlarmCriteria criteria)
countMatchingAlarms
in interface WebAlarmRepository
criteria
- the criteriapublic int[] countMatchingAlarmsBySeverity(AlarmCriteria criteria)
countMatchingAlarmsBySeverity
in interface WebAlarmRepository
criteria
- the criteriapublic Alarm getAlarm(int alarmId)
getAlarm
in interface WebAlarmRepository
alarmId
- the alarm idpublic Alarm[] getMatchingAlarms(AlarmCriteria criteria)
getMatchingAlarms
in interface WebAlarmRepository
criteria
- the criteriapublic void acknowledgeAlarms(int[] alarmIds, String user, Date timestamp)
acknowledgeAlarms
acknowledgeAlarms
in interface WebAlarmRepository
alarmIds
- an array of int.user
- a String
object.timestamp
- a java$util$Date object.public void acknowledgeMatchingAlarms(String user, Date timestamp, AlarmCriteria criteria)
acknowledgeMatchingAlarms
in interface WebAlarmRepository
user
- the usertimestamp
- the timestampcriteria
- the criteriapublic void acknowledgeAll(String user, Date timestamp)
acknowledgeAll
acknowledgeAll
in interface WebAlarmRepository
user
- a String
object.timestamp
- a java$util$Date object.public void unacknowledgeAlarms(int[] alarmIds, String user)
unacknowledgeAlarms
in interface WebAlarmRepository
alarmIds
- an array of alarms IDuser
- the userpublic void unacknowledgeMatchingAlarms(AlarmCriteria criteria, String user)
unacknowledgeMatchingAlarms
in interface WebAlarmRepository
criteria
- the criteriauser
- the userpublic void unacknowledgeAll(String user)
unacknowledgeAll
in interface WebAlarmRepository
user
- the userpublic void clearAlarms(int[] alarmIds, String user)
clearAlarms
alarmIds
- an array of int.user
- a String
object.public void clearAlarms(int[] alarmIds, String user, Date timestamp)
clearAlarms
clearAlarms
in interface WebAlarmRepository
alarmIds
- an array of int.user
- a String
object.timestamp
- a java$util$Date object.public void escalateAlarms(int[] alarmIds, String user, Date timestamp)
escalateAlarms
escalateAlarms
in interface WebAlarmRepository
alarmIds
- an array of int.user
- a String
object.timestamp
- a java$util$Date object.public List<OnmsAcknowledgment> getAcknowledgments(int alarmId)
WebAlarmRepository
getAcknowledgments
in interface WebAlarmRepository
alarmId
- the alarm idpublic List<AlarmSummary> getCurrentNodeAlarmSummaries()
WebAlarmRepository
getCurrentNodeAlarmSummaries
in interface WebAlarmRepository
Copyright © 2015. All Rights Reserved.