public class AlarmDaoHibernate extends AbstractDaoHibernate<OnmsAlarm,Integer> implements AlarmDao
AlarmDaoHibernate class.
m_criteriaConverter
Constructor and Description |
---|
AlarmDaoHibernate() |
Modifier and Type | Method and Description |
---|---|
OnmsAlarm |
findByReductionKey(String reductionKey) |
List<OnmsAlarm> |
getAlarmsForEventParameters(Map<String,String> eventParameters) |
List<HeatMapElement> |
getHeatMapItemsForEntity(String entityNameColumn,
String entityIdColumn,
boolean processAcknowledgedAlarms,
String restrictionColumn,
String restrictionValue,
String... groupByColumns) |
List<AlarmSummary> |
getNodeAlarmSummaries()
Get the list of current - not yet acknowledged - alarms per node with severity greater than normal,
reflecting the max severity, the minimum last event time and alarm count;
ordered by the oldest.
|
List<AlarmSummary> |
getNodeAlarmSummariesIncludeAcknowledgedOnes(List<Integer> nodeIds)
Get the list of current alarms per node with severity not equal to cleared, reflecting the max severity,
the minimum last event time and alarm count.
|
List<SituationSummary> |
getSituationSummaries()
Get the list of current - not yet acknowledged - situations with severity greater than normal;
|
buildHibernateCallback, bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, find, find, findAll, findMatching, findMatching, findObjects, findUnique, flush, get, initDao, initialize, load, lock, merge, queryInt, queryInt, save, saveOrUpdate, update
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countMatching, findMatching
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
public OnmsAlarm findByReductionKey(String reductionKey)
findByReductionKey
in interface AlarmDao
public List<AlarmSummary> getNodeAlarmSummariesIncludeAcknowledgedOnes(List<Integer> nodeIds)
getNodeAlarmSummariesIncludeAcknowledgedOnes
in interface AlarmDao
nodeIds
- The nodeIds you want to restrict the AlarmSummary calculation to. Must not be NULL!public List<AlarmSummary> getNodeAlarmSummaries()
Get the list of current - not yet acknowledged - alarms per node with severity greater than normal, reflecting the max severity, the minimum last event time and alarm count; ordered by the oldest.
getNodeAlarmSummaries
in interface AlarmDao
public List<SituationSummary> getSituationSummaries()
Get the list of current - not yet acknowledged - situations with severity greater than normal;
getSituationSummaries
in interface AlarmDao
public List<HeatMapElement> getHeatMapItemsForEntity(String entityNameColumn, String entityIdColumn, boolean processAcknowledgedAlarms, String restrictionColumn, String restrictionValue, String... groupByColumns)
getHeatMapItemsForEntity
in interface AlarmDao
Copyright © 2021. All rights reserved.