public class RTCNodeSvcTimesList extends LinkedList<RTCNodeSvcTime>
modCount| Constructor and Description |
|---|
RTCNodeSvcTimesList(long rollingWindow)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSvcTime(long losttime)
Add a new servicetime entry
|
void |
addSvcTime(long losttime,
long regainedtime)
Add a new servicetime entry.
|
long |
getDownTime(long curTime,
long rollingWindow)
Calculate the total downtime in this list of service times for the last
'rollingWindow' time starting at 'curTime'
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streampublic RTCNodeSvcTimesList(long rollingWindow)
public void addSvcTime(long losttime,
long regainedtime)
losttime - time at which service was lostregainedtime - time at which service was regainedpublic void addSvcTime(long losttime)
losttime - time at which service was lostpublic long getDownTime(long curTime,
long rollingWindow)
curTime - the current time from which the down time is to be calculatedrollingWindow - the last window for which the downtime is to be calculatedCopyright © 2022. All rights reserved.