|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.reporting.datablock.StandardNamedObject
org.opennms.reporting.datablock.Interface
public class Interface
This class holds the interface information and list of services that belong to the interface.
| Constructor Summary | |
|---|---|
Interface()
Default Constructor. |
|
Interface(ArrayList<Service> services)
Constructor that sets the services. |
|
Interface(String name)
Constructor that sets the name. |
|
Interface(String name,
ArrayList<Service> services)
Constructor that sets the name of interface and sets the services. |
|
Interface(String name,
String service)
Constructor that sets the name and adds service. |
|
Interface(String name,
String service,
long losttime)
Constructor that sets the name to interface and adds service and outage with lost time. |
|
Interface(String name,
String service,
long losttime,
long regainedtime)
Constructor that sets the name to interface and adds service and outage with lost time and regained time. |
|
| Method Summary | |
|---|---|
void |
addService(Service service)
Adds a new service object to this interface |
void |
addService(String service)
Adds a new service to this interface |
void |
addService(String service,
long losttime)
Adds a new service to this interface. |
void |
addService(String service,
long losttime,
long regainedtime)
Adds a service to this interface with outage having lost time and regained time. |
boolean |
equals(Object obj)
|
long |
getDownTime(long currentTime,
long rollingWindow)
Returns the down time for this interface. |
Service |
getService(String svcname)
Return the Service object given the service name |
int |
getServiceAffectCount()
Returns the number of services affected. |
int |
getServiceCount()
Returns the number of services that this node/interface has. |
List<Service> |
getServices()
Return the services |
| Methods inherited from class org.opennms.reporting.datablock.StandardNamedObject |
|---|
getName, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Interface()
public Interface(String name,
ArrayList<Service> services)
name - Name of the interface.services - Services to be set for this interface.
public Interface(String name,
String service)
name - Name of the interface.service - Name of the service to be added
public Interface(String name,
String service,
long losttime)
name - Name of the interface.service - Name of the service to be addedlosttime - Lost time
public Interface(String name,
String service,
long losttime,
long regainedtime)
name - Name of the interface.service - Name of the service to be addedlosttime - Lost timeregainedtime - Regained Timepublic Interface(String name)
name - Name of the interface.public Interface(ArrayList<Service> services)
services - Services for this interface to be set.| Method Detail |
|---|
public List<Service> getServices()
public Service getService(String svcname)
svcname - The service name to lookup.
public void addService(Service service)
service - The service to be add.public void addService(String service)
service - The name of the service to add.
public void addService(String service,
long losttime)
service - Service name to be addedlosttime - Outage with lost time to be added to service
public void addService(String service,
long losttime,
long regainedtime)
service - Service namelosttime - Lost timeregainedtime - Regained Time
public long getDownTime(long currentTime,
long rollingWindow)
currentTime - End of rolling windowrollingWindow - Rolling Window
public int getServiceCount()
public int getServiceAffectCount()
public boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||