Package org.opennms.web.outage
Class OutageModel
- java.lang.Object
-
- org.opennms.web.outage.OutageModel
-
public abstract class OutageModel extends Object
Deprecated.UseOutageDao
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(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
-
-
-
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.
-
-