org.opennms.netmgt.dao
Interface OutageDao

All Superinterfaces:
OnmsDao<OnmsOutage,Integer>
All Known Implementing Classes:
OutageDaoHibernate

public interface OutageDao
extends OnmsDao<OnmsOutage,Integer>

OutageDao interface.

Version:
$Id: $
Author:
ranger

Method Summary
 int countOutagesByNode()
          Get the number of nodes with outages.
 Integer currentOutageCount()
          currentOutageCount
 Collection<OnmsOutage> currentOutages()
          currentOutages
 Collection<OnmsOutage> findAll(Integer offset, Integer limit)
          findAll
 List<OutageSummary> getNodeOutageSummaries(int rows)
          Get the list of current outages, one per node.
 Collection<OnmsOutage> matchingCurrentOutages(ServiceSelector selector)
          matchingCurrentOutages
 
Methods inherited from interface org.opennms.netmgt.dao.OnmsDao
clear, countAll, countMatching, delete, findAll, findMatching, flush, get, initialize, load, save, saveOrUpdate, update
 

Method Detail

currentOutageCount

Integer currentOutageCount()

currentOutageCount

Returns:
a Integer object.

currentOutages

Collection<OnmsOutage> currentOutages()

currentOutages

Returns:
a Collection object.

matchingCurrentOutages

Collection<OnmsOutage> matchingCurrentOutages(ServiceSelector selector)

matchingCurrentOutages

Parameters:
selector - a ServiceSelector object.
Returns:
a Collection object.

findAll

Collection<OnmsOutage> findAll(Integer offset,
                               Integer limit)

findAll

Parameters:
offset - a Integer object.
limit - a Integer object.
Returns:
a Collection object.

countOutagesByNode

int countOutagesByNode()
Get the number of nodes with outages.

Returns:
the number of nodes with outages.

getNodeOutageSummaries

List<OutageSummary> getNodeOutageSummaries(int rows)
Get the list of current outages, one per node. If a node has more than one outage, the oldest outstanding outage is returned.

Parameters:
rows - The maximum number of outages to return.
Returns:
A list of outages.


Copyright © 2011. All Rights Reserved.