public class Service extends StandardNamedObject
Constructor and Description |
---|
Service()
Default Constructor.
|
Service(OutageSvcTimesList outages)
Constructor that sets the outages.
|
Service(String name)
Constructor for Service.
|
Service(String name,
OutageSvcTimesList outages)
Constructor that sets the name and the outages.
|
Modifier and Type | Method and Description |
---|---|
void |
addOutage(long lost)
Added outage.
|
void |
addOutage(long lost,
long regained)
Added outage.
|
void |
addOutage(Outage outage)
Adds a lost time / regained time combination for the node.
|
boolean |
equals(Object obj)
Equals method.
|
long |
getBusDownTime()
Returns the outage time for this service during business hours.
|
double |
getBusPercentAvail()
Returns the percentage Availability for this service during business
hours.
|
double |
getDownTime()
Returns the outage time for this service.
|
long |
getDownTime(long currentTime,
long rollingWindow)
Return the outage for this service.
|
long |
getMonitoredBusTime()
Returns the monitored time for this service during business hours.
|
long |
getMonitoredTime()
Returns the percentage Availability for this service during business
hours.
|
OutageSvcTimesList |
getOutages()
Return the outages
|
double |
getPercentAvail()
Returns the percentage Availability.
|
double |
getPercentAvail(long currentTime,
long rollingWindow)
Returns the Percentage Availability for the service
|
getName, setName
public Service()
public Service(String name, OutageSvcTimesList outages)
name
- Name of the service.outages
- Outages to be set for this service.public Service(OutageSvcTimesList outages)
outages
- Outages for this service to be set.public double getDownTime()
public long getBusDownTime()
public double getPercentAvail()
public double getBusPercentAvail()
public long getMonitoredTime()
public long getMonitoredBusTime()
public OutageSvcTimesList getOutages()
public void addOutage(long lost, long regained)
lost
- a long.regained
- a long.public void addOutage(long lost)
lost
- a long.public void addOutage(Outage outage)
outage
- a Outage
object.public long getDownTime(long currentTime, long rollingWindow)
currentTime
- a long.rollingWindow
- a long.public double getPercentAvail(long currentTime, long rollingWindow)
currentTime
- Time at the end of the Rolling Window.rollingWindow
- Actual Monitored Time.Copyright © 2021. All rights reserved.