public abstract class RTCUtils extends Object
| Constructor and Description | 
|---|
RTCUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static HashMap<String,RTCCategory> | 
createCategoriesMap()
Creates the categories map. 
 | 
static Set<Integer> | 
getNodeIdsForCategory(FilterDao filterDao,
                     RTCCategory cat)  | 
static double | 
getOutagePercentage(double totalOutageTime,
                   long outageWindow,
                   long numberOfServices)
Calculate the uptime percentage for an outage window. 
 | 
public static double getOutagePercentage(double totalOutageTime,
                                         long outageWindow,
                                         long numberOfServices)
totalOutageTime - Total outage time over the window in millisecondsoutageWindow - Length of the outage window in millisecondsnumberOfServices - Number of services that were managed over this time periodpublic static HashMap<String,RTCCategory> createCategoriesMap()
public static Set<Integer> getNodeIdsForCategory(FilterDao filterDao, RTCCategory cat)
Copyright © 2021. All rights reserved.