Class MockAlarmDao

    • Constructor Detail

      • MockAlarmDao

        public MockAlarmDao()
    • Method Detail

      • getNodeAlarmSummaries

        public java.util.List<AlarmSummary> getNodeAlarmSummaries()
        Description copied from interface: AlarmDao

        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:
        getNodeAlarmSummaries in interface AlarmDao
        Returns:
        A list of alarm summaries.
      • getSituationSummaries

        public java.util.List<SituationSummary> getSituationSummaries()
        Description copied from interface: AlarmDao

        Get the list of current - not yet acknowledged - situations with severity greater than normal;

        Specified by:
        getSituationSummaries in interface AlarmDao
        Returns:
        A list of situation summaries.
      • getNodeAlarmSummariesIncludeAcknowledgedOnes

        public java.util.List<AlarmSummary> getNodeAlarmSummariesIncludeAcknowledgedOnes​(java.util.List<java.lang.Integer> nodeIds)
        Description copied from interface: AlarmDao
        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:
        getNodeAlarmSummariesIncludeAcknowledgedOnes in interface AlarmDao
        Parameters:
        nodeIds - The nodeIds you want to restrict the AlarmSummary calculation to. Must not be NULL!
      • getHeatMapItemsForEntity

        public java.util.List<HeatMapElement> getHeatMapItemsForEntity​(java.lang.String entityNameColumn,
                                                                       java.lang.String entityIdColumn,
                                                                       boolean processAcknowledgedAlarms,
                                                                       java.lang.String restrictionColumn,
                                                                       java.lang.String restrictionValue,
                                                                       java.lang.String... groupByColumns)
        Specified by:
        getHeatMapItemsForEntity in interface AlarmDao
      • getAlarmsForEventParameters

        public java.util.List<OnmsAlarm> getAlarmsForEventParameters​(java.util.Map<java.lang.String,​java.lang.String> eventParameters)
        Specified by:
        getAlarmsForEventParameters in interface AlarmDao