|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList
org.opennms.netmgt.rtc.datablock.RTCNodeSvcTimesList
public class RTCNodeSvcTimesList
List of service times. This contains a list of service lost/regained set/pair for the RTCNode. Also maintains the outage/down time each time it is calculated and the time from which this was calculated - this is done so when the outage time for a window is calculated, the same calculations are not done on the node multiple times. 'Expired' outages are removed during 'add' and 'getDownTime' operations.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
RTCNodeSvcTimesList()
Default constructor. |
|
| Method Summary | |
|---|---|
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' |
| Methods inherited from class java.util.LinkedList |
|---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public RTCNodeSvcTimesList()
| Method Detail |
|---|
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 lost
public 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 calculated
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||