Class AvailabilityData
- java.lang.Object
-
- 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
Constructors Constructor Description AvailabilityData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillReport(String categoryName, Report report, String format, String monthFormat, String startMonth, String startDate, String startYear)
fillReportvoid
fillReport(String categoryName, Report report, String format, String monthFormat, Date periodEndDate)
fillReportList<Node>
getNodes()
Returns the nodes.Map<Double,List<String>>
getPercentNode()
Returns percent/node combinations for the last month.void
setAvailabilityDataService(AvailabilityDataService availabilityDataService)
setAvailabilityDataService
-
-
-
Method Detail
-
fillReport
public void fillReport(String categoryName, Report report, String format, String monthFormat, String startMonth, String startDate, String startYear) throws IOException, Exception
fillReport
-
fillReport
public void fillReport(String categoryName, Report report, String format, String monthFormat, Date periodEndDate) throws IOException, Exception
fillReport
-
getPercentNode
public Map<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
- aAvailabilityDataService
object.
-
-