Package org.opennms.netmgt.rtc
Class RTCUtils
- java.lang.Object
-
- org.opennms.netmgt.rtc.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.
-
-
-
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 millisecondsoutageWindow
- Length of the outage window in millisecondsnumberOfServices
- 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)
-
-