Class 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
    • 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)
      fillReport
      void fillReport​(java.lang.String categoryName, Report report, java.lang.String format, java.lang.String monthFormat, java.util.Date periodEndDate)
      fillReport
      java.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
      • 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​(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 - 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:
        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 - a String object.
        report - a Report object.
        format - a String object.
        monthFormat - a String object.
        periodEndDate - a Date 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.