Class SurveillanceViewService.NodeRtc
- java.lang.Object
-
- org.opennms.features.vaadin.surveillanceviews.service.SurveillanceViewService.NodeRtc
-
- Enclosing interface:
- SurveillanceViewService
public static class SurveillanceViewService.NodeRtc extends Object
The class for storing node RTC calculations
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)doublegetAvailability()Returns the availability as a double value.StringgetAvailabilityAsString()Returns the availability as a formatted string.intgetDownServiceCount()Returns the down services count.OnmsNodegetNode()Returns the node instance associated with this RTC calculation.intgetServiceCount()Returns the service count.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
NodeRtc
public NodeRtc(OnmsNode node, int serviceCount, int downServiceCount, double availability)
Constructor for instantiating instances.- Parameters:
node- the node to be usedserviceCount- the service countdownServiceCount- the service down countavailability- the overall availability
-
-
Method Detail
-
getAvailability
public double getAvailability()
Returns the availability as a double value.- Returns:
- the availability
-
getAvailabilityAsString
public String getAvailabilityAsString()
Returns the availability as a formatted string.- Returns:
- the formatted availability string
-
getDownServiceCount
public int getDownServiceCount()
Returns the down services count.- Returns:
- the down services count.
-
getNode
public OnmsNode getNode()
Returns the node instance associated with this RTC calculation.- Returns:
- the node
-
getServiceCount
public int getServiceCount()
Returns the service count.- Returns:
- the service count.
-
-