|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.report.datablock.Outage
This class holds the service lost and regained time pair for the node/ipaddr/service combination.
| Field Summary | |
private static java.lang.String |
LOG4J_CATEGORY
The log4j category used to log debug messsages and statements. |
private long |
m_svcLostTime
Time at which the service was lost. |
private long |
m_svcRegainedTime
Time at which service was regained. |
| Constructor Summary | |
Outage()
Default Constructor. |
|
Outage(long svcLost)
Constructor that sets the lost time. |
|
Outage(long svcLost,
long svcRegained)
Constructor that sets the service 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 regained time |
void |
setLostTime(long losttime)
Set the Lost time |
void |
setRegainedTime(long regainedtime)
Set the regained time. |
java.lang.String |
toString()
Returns the outage information in date format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String LOG4J_CATEGORY
private long m_svcLostTime
private long m_svcRegainedTime
| Constructor Detail |
public Outage()
public Outage(long svcLost)
svcLost - Time at which the service is lost.
public Outage(long svcLost,
long svcRegained)
svcLost - Time at which the service is lost.svcRegained - Time at which the service is regained.| Method Detail |
public void setLostTime(long losttime)
losttime - Time at which the service is lost.public void setRegainedTime(long regainedtime)
regainedtime - Time at which the service is regained.public long getLostTime()
public long getRegainedTime()
public long getDownTime(long curTime,
long rollingWindow)
curTime - Time denoting end of rolling window (milliseconds).rollingWindow - Rolling Window (milliseconds)
public java.lang.String toString()
|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||