Class RTCUtils


  • public abstract class RTCUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RTCUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.HashMap<java.lang.String,​RTCCategory> createCategoriesMap()
      Creates the categories map.
      static java.util.Set<java.lang.Integer> getNodeIdsForCategory​(FilterDao filterDao, RTCCategory cat)  
      static double getOutagePercentage​(double totalOutageTime, long outageWindow, long numberOfServices)
      Calculate the uptime percentage for an outage window.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RTCUtils

        public RTCUtils()
    • Method Detail

      • getOutagePercentage

        public static double getOutagePercentage​(double totalOutageTime,
                                                 long outageWindow,
                                                 long numberOfServices)
        Calculate the uptime percentage for an outage window.
        Parameters:
        totalOutageTime - Total outage time over the window in milliseconds
        outageWindow - Length of the outage window in milliseconds
        numberOfServices - Number of services that were managed over this time period
        Returns:
        An outage percentage between 0.0 and 100.0.
      • createCategoriesMap

        public static java.util.HashMap<java.lang.String,​RTCCategory> createCategoriesMap()
        Creates the categories map. Reads the categories from the categories.xml and creates the 'RTCCategory's map
      • getNodeIdsForCategory

        public static java.util.Set<java.lang.Integer> getNodeIdsForCategory​(FilterDao filterDao,
                                                                             RTCCategory cat)