Class SurveillanceViewService.NodeRtc

  • Enclosing interface:
    SurveillanceViewService

    public static class SurveillanceViewService.NodeRtc
    extends Object
    The class for storing node RTC calculations
    • Constructor Detail

      • NodeRtc

        public NodeRtc​(OnmsNode node,
                       int serviceCount,
                       int downServiceCount,
                       double availability)
        Constructor for instantiating instances.
        Parameters:
        node - the node to be used
        serviceCount - the service count
        downServiceCount - the service down count
        availability - 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object