Class SurveillanceViewService.NodeRtc

  • Enclosing interface:
    SurveillanceViewService

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

      Constructors 
      Constructor Description
      NodeRtc​(OnmsNode node, int serviceCount, int downServiceCount, double availability)
      Constructor for instantiating instances.
    • 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 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object