Class SurveillanceViewService.NodeRtc
- java.lang.Object
-
- org.opennms.features.vaadin.surveillanceviews.service.SurveillanceViewService.NodeRtc
-
- Enclosing interface:
- SurveillanceViewService
public static class SurveillanceViewService.NodeRtc extends java.lang.Object
The class for storing node RTC calculations
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
double
getAvailability()
Returns the availability as a double value.java.lang.String
getAvailabilityAsString()
Returns the availability as a formatted string.int
getDownServiceCount()
Returns the down services count.OnmsNode
getNode()
Returns the node instance associated with this RTC calculation.int
getServiceCount()
Returns the service count.int
hashCode()
java.lang.String
toString()
-
-
-
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 java.lang.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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-