|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.rtc.datablock.RTCNodeSvcTime
This contains a service lost/regained set/pair for the node - i.e each service lost time and the corresponding service regained time
Field Summary | |
private long |
m_svcLostTime
Time at which service was lost |
private long |
m_svcRegainedTime
Time at which service was regained |
Constructor Summary | |
RTCNodeSvcTime()
Default constructor - initilializes the values |
|
RTCNodeSvcTime(long lostt)
Creates a time with the lost time |
|
RTCNodeSvcTime(long lostt,
long regainedt)
Creates the service time with both the lost and regained times |
Method Summary | |
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 if this outages has expired |
void |
setLostTime(long t)
Set the service lost time |
void |
setRegainedTime(long t)
Set the service regained time |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private long m_svcLostTime
private long m_svcRegainedTime
Constructor Detail |
public RTCNodeSvcTime()
public RTCNodeSvcTime(long lostt)
lostt
- the time at which service was lostpublic RTCNodeSvcTime(long lostt, long regainedt)
lostt
- the time at which service was lostregainedt
- the time at which service was regainedMethod Detail |
public void setLostTime(long t)
t
- the time at which service was lostpublic void setRegainedTime(long t)
t
- the time at which service was regainedpublic long getLostTime()
public long getRegainedTime()
public boolean hasExpired(long startOfRollingWindow)
public long getDownTime(long curTime, long rollingWindow)
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |