org.opennms.reporting.availability
Class AvailabilityData

java.lang.Object
  extended by org.opennms.reporting.availability.AvailabilityData

public class AvailabilityData
extends Object

AvailabilityData collects all the outages for all node/ip/service combination and stores it appropriately in the m_nodes structure.

Author:
Jacinta Remedios

Constructor Summary
AvailabilityData()
           
 
Method Summary
 void fillReport(String categoryName, Report report, String format, String monthFormat, Date periodEndDate)
          fillReport
 void fillReport(String categoryName, Report report, String format, String monthFormat, String startMonth, String startDate, String startYear)
          fillReport
 List<Node> getNodes()
          Returns the nodes.
 TreeMap<Double,List<String>> getPercentNode()
          Returns percent/node combinations for the last month.
 void setAvailabilityDataService(AvailabilityDataService availabilityDataService)
          setAvailabilityDataService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailabilityData

public AvailabilityData()
Method Detail

fillReport

public void fillReport(String categoryName,
                       Report report,
                       String format,
                       String monthFormat,
                       String startMonth,
                       String startDate,
                       String startYear)
                throws IOException,
                       org.exolab.castor.xml.MarshalException,
                       org.exolab.castor.xml.ValidationException,
                       Exception

fillReport

Parameters:
categoryName - a String object.
report - a Report object.
format - a String object.
monthFormat - a String object.
startMonth - a String object.
startDate - a String object.
startYear - a String object.
Throws:
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
Exception - if any.

fillReport

public void fillReport(String categoryName,
                       Report report,
                       String format,
                       String monthFormat,
                       Date periodEndDate)
                throws IOException,
                       org.exolab.castor.xml.MarshalException,
                       org.exolab.castor.xml.ValidationException,
                       Exception

fillReport

Parameters:
categoryName - a String object.
report - a Report object.
format - a String object.
monthFormat - a String object.
periodEndDate - a Date object.
Throws:
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
Exception - if any.

getNodes

public List<Node> getNodes()
Returns the nodes.

Returns:
a List object.

getPercentNode

public TreeMap<Double,List<String>> getPercentNode()
Returns percent/node combinations for the last month. This is used to get the last months top 20 offenders

Returns:
a TreeMap object.

setAvailabilityDataService

public void setAvailabilityDataService(AvailabilityDataService availabilityDataService)

setAvailabilityDataService

Parameters:
availabilityDataService - a AvailabilityDataService object.


Copyright © 2011. All Rights Reserved.