|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.reporting.datablock.Outage
public class Outage
This class holds the service lost and regained time pair for the node/ipaddr/service combination.
| 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. |
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 |
| 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 String toString()
toString in class ObjectString object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||