Package org.opennms.netmgt.dao.hibernate
Class AlarmDaoHibernate
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<OnmsAlarm,Integer>
-
- org.opennms.netmgt.dao.hibernate.AlarmDaoHibernate
-
- All Implemented Interfaces:
AlarmDao,LegacyOnmsDao<OnmsAlarm,Integer>,OnmsDao<OnmsAlarm,Integer>,org.springframework.beans.factory.InitializingBean
public class AlarmDaoHibernate extends AbstractDaoHibernate<OnmsAlarm,Integer> implements AlarmDao
AlarmDaoHibernate class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
m_criteriaConverter
-
-
Constructor Summary
Constructors Constructor Description AlarmDaoHibernate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsAlarmfindByReductionKey(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;-
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
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
-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.dao.api.LegacyOnmsDao
countMatching, findMatching
-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
findByReductionKey
public OnmsAlarm findByReductionKey(String reductionKey)
- Specified by:
findByReductionKeyin interfaceAlarmDao
-
getNodeAlarmSummariesIncludeAcknowledgedOnes
public 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. The alarm count only considers not yet acknowledged alarms, but the max severity is calculated overall (including acknowledged) alarms.- Specified by:
getNodeAlarmSummariesIncludeAcknowledgedOnesin interfaceAlarmDao- Parameters:
nodeIds- The nodeIds you want to restrict the AlarmSummary calculation to. Must not be NULL!
-
getNodeAlarmSummaries
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.
- Specified by:
getNodeAlarmSummariesin interfaceAlarmDao- Returns:
- A list of alarm summaries.
-
getSituationSummaries
public List<SituationSummary> getSituationSummaries()
Get the list of current - not yet acknowledged - situations with severity greater than normal;
- Specified by:
getSituationSummariesin interfaceAlarmDao- Returns:
- A list of situation summaries.
-
getHeatMapItemsForEntity
public List<HeatMapElement> getHeatMapItemsForEntity(String entityNameColumn, String entityIdColumn, boolean processAcknowledgedAlarms, String restrictionColumn, String restrictionValue, String... groupByColumns)
- Specified by:
getHeatMapItemsForEntityin interfaceAlarmDao
-
-