Class OutageModel


  • public abstract class OutageModel
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      OutageModel()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static OutageSummary[] getAllOutageSummaries​(java.util.Date date)
      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.
      static Outage[] getCurrentOutagesForNode​(int nodeId)
      Deprecated.
      getCurrentOutagesForNode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OutageModel

        public OutageModel()
        Deprecated.
    • Method Detail

      • getCurrentOutagesForNode

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

        getCurrentOutagesForNode

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

        public static OutageSummary[] getAllOutageSummaries​(java.util.Date date)
                                                     throws java.sql.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:
        java.sql.SQLException - if any.