Class RTCNodeSvcTimesList

    • Constructor Detail

      • RTCNodeSvcTimesList

        public RTCNodeSvcTimesList​(long rollingWindow)
        Default constructor.
    • Method Detail

      • addSvcTime

        public void addSvcTime​(long losttime,
                               long regainedtime)
        Add a new servicetime entry.
        Parameters:
        losttime - time at which service was lost
        regainedtime - time at which service was regained
      • addSvcTime

        public void addSvcTime​(long losttime)
        Add a new servicetime entry
        Parameters:
        losttime - time at which service was lost
      • getDownTime

        public long getDownTime​(long curTime,
                                long rollingWindow)
        Calculate the total downtime in this list of service times for the last 'rollingWindow' time starting at 'curTime'
        Parameters:
        curTime - the current time from which the down time is to be calculated
        rollingWindow - the last window for which the downtime is to be calculated
        Returns:
        total down time for all outages for this service