org.opennms.web.outage
Class JdbcWebOutageRepository

java.lang.Object
  extended by org.opennms.web.outage.JdbcWebOutageRepository
All Implemented Interfaces:
WebOutageRepository

public class JdbcWebOutageRepository
extends Object
implements WebOutageRepository

JdbcWebOutageRepository class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

Constructor Summary
JdbcWebOutageRepository()
           
 
Method Summary
 int countCurrentOutages()
          Count the current number of nodes with outages.
 int countMatchingOutages(OutageCriteria criteria)
          countMatchingOutages
 int countMatchingOutageSummaries(OutageCriteria criteria)
          countMatchingOutageSummaries
 OutageSummary[] getCurrentOutages(int rows)
          Get the current list of outages by node.
 Outage[] getMatchingOutages(OutageCriteria criteria)
          getMatchingOutages
 OutageSummary[] getMatchingOutageSummaries(OutageCriteria criteria)
          getMatchingOutageSummaries
 Outage getOutage(int outageId)
          getOutage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcWebOutageRepository

public JdbcWebOutageRepository()
Method Detail

countCurrentOutages

public int countCurrentOutages()
Count the current number of nodes with outages.

Specified by:
countCurrentOutages in interface WebOutageRepository

getCurrentOutages

public OutageSummary[] getCurrentOutages(int rows)
Get the current list of outages by node.

Specified by:
getCurrentOutages in interface WebOutageRepository
Parameters:
rows - the number of outages to return.
Returns:

countMatchingOutages

public int countMatchingOutages(OutageCriteria criteria)

countMatchingOutages

Specified by:
countMatchingOutages in interface WebOutageRepository
Parameters:
criteria - a OutageCriteria object.
Returns:
a int.

getMatchingOutages

public Outage[] getMatchingOutages(OutageCriteria criteria)

getMatchingOutages

Specified by:
getMatchingOutages in interface WebOutageRepository
Parameters:
criteria - a OutageCriteria object.
Returns:
an array of Outage objects.

countMatchingOutageSummaries

public int countMatchingOutageSummaries(OutageCriteria criteria)

countMatchingOutageSummaries

Specified by:
countMatchingOutageSummaries in interface WebOutageRepository
Parameters:
criteria - a OutageCriteria object.
Returns:
a int.

getMatchingOutageSummaries

public OutageSummary[] getMatchingOutageSummaries(OutageCriteria criteria)

getMatchingOutageSummaries

Specified by:
getMatchingOutageSummaries in interface WebOutageRepository
Parameters:
criteria - a OutageCriteria object.
Returns:
an array of OutageSummary objects.

getOutage

public Outage getOutage(int outageId)

getOutage

Specified by:
getOutage in interface WebOutageRepository
Parameters:
outageId - a int.
Returns:
a Outage object.


Copyright © 2011. All Rights Reserved.