Class OutageModel


  • public abstract class OutageModel
    extends Object
    Deprecated.
    Use OutageDao instead.
    As the nonvisual logic for the Services Down (Outage) servlet and JSPs, this class queries the database for current outages and provides utility methods for manipulating that list of outages.
    Author:
    Lawrence Karnowski , OpenNMS
    • Constructor Detail

      • OutageModel

        public OutageModel()
        Deprecated.
    • Method Detail

      • getCurrentOutagesForNode

        public static Outage[] getCurrentOutagesForNode​(int nodeId)
                                                 throws SQLException
        Deprecated.

        getCurrentOutagesForNode

        Parameters:
        nodeId - a int.
        Returns:
        an array of Outage objects.
        Throws:
        SQLException - if any.
      • getAllOutageSummaries

        public static OutageSummary[] getAllOutageSummaries​(Date date)
                                                     throws SQLException
        Deprecated.
        Return a list of IP addresses, the number of services down on each IP address, and the longest time a service has been down for each IP address. The list will be sorted by the amount of time it has been down.
        Parameters:
        date - the starting date for the query
        Returns:
        an array of OutageSummary objects.
        Throws:
        SQLException - if any.