Class AvailabilityData
- java.lang.Object
-
- org.opennms.reporting.availability.AvailabilityData
-
public class AvailabilityData extends java.lang.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(java.lang.String categoryName, Report report, java.lang.String format, java.lang.String monthFormat, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear)
fillReportvoid
fillReport(java.lang.String categoryName, Report report, java.lang.String format, java.lang.String monthFormat, java.util.Date periodEndDate)
fillReportjava.util.List<Node>
getNodes()
Returns the nodes.java.util.Map<java.lang.Double,java.util.List<java.lang.String>>
getPercentNode()
Returns percent/node combinations for the last month.void
setAvailabilityDataService(AvailabilityDataService availabilityDataService)
setAvailabilityDataService
-
-
-
Method Detail
-
fillReport
public void fillReport(java.lang.String categoryName, Report report, java.lang.String format, java.lang.String monthFormat, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear) throws java.io.IOException, java.lang.Exception
fillReport
- Parameters:
categoryName
- aString
object.report
- aReport
object.format
- aString
object.monthFormat
- aString
object.startMonth
- aString
object.startDate
- aString
object.startYear
- aString
object.- Throws:
java.io.IOException
- if any.java.lang.Exception
- if any.
-
fillReport
public void fillReport(java.lang.String categoryName, Report report, java.lang.String format, java.lang.String monthFormat, java.util.Date periodEndDate) throws java.io.IOException, java.lang.Exception
fillReport
- Parameters:
categoryName
- aString
object.report
- aReport
object.format
- aString
object.monthFormat
- aString
object.periodEndDate
- aDate
object.- Throws:
java.io.IOException
- if any.java.lang.Exception
- if any.
-
getNodes
public java.util.List<Node> getNodes()
Returns the nodes.- Returns:
- a
List
object.
-
getPercentNode
public java.util.Map<java.lang.Double,java.util.List<java.lang.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.
-
-