public class RTCNodeSvcTime extends Object
| Constructor and Description | 
|---|
RTCNodeSvcTime(long lostTime)
Creates a time with the lost time 
 | 
RTCNodeSvcTime(long lostTime,
              long regainedTime)
Creates the service time with both the lost and regained times 
 | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getDownTime(long curTime,
           long rollingWindow)
Return the downtime (difference between the regained and lost times) in
 the last rolling window 
 | 
long | 
getLostTime()
Return the service lost time 
 | 
long | 
getRegainedTime()
Return the service regained time 
 | 
boolean | 
hasExpired(long startOfRollingWindow)
Return true if this outage has expired. 
 | 
void | 
setRegainedTime(long t)
Set the service regained time 
 | 
public RTCNodeSvcTime(long lostTime)
lostTime - the time at which service was lostpublic RTCNodeSvcTime(long lostTime,
                      long regainedTime)
lostTime - the time at which service was lostregainedTime - the time at which service was regainedpublic void setRegainedTime(long t)
t - the time at which service was regainedpublic long getLostTime()
public long getRegainedTime()
public boolean hasExpired(long startOfRollingWindow)
startOfRollingWindow - Epoch milliseconds that indicates the 
   beginning of the rolling outage window.public long getDownTime(long curTime,
                        long rollingWindow)
curTime - a long.rollingWindow - a long.Copyright © 2020. All rights reserved.