Class RTCUtils


  • public abstract class RTCUtils
    extends Object
    • 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 HashMap<String,​RTCCategory> createCategoriesMap()
        Creates the categories map. Reads the categories from the categories.xml and creates the 'RTCCategory's map