|
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.report.datablock.StandardNamedObject
org.opennms.report.datablock.Interface
This class holds the interface information and list of services that belong to the interface.
Nested Class Summary | |
private static class |
Interface.ServiceComparator
|
Field Summary | |
private java.util.ArrayList |
m_services
List of services. |
Fields inherited from class org.opennms.report.datablock.StandardNamedObject |
|
Constructor Summary | |
Interface()
Default Constructor. |
|
Interface(java.util.ArrayList services)
Constructor that sets the services. |
|
Interface(java.lang.String name)
Constructor that sets the name. |
|
Interface(java.lang.String name,
java.util.ArrayList services)
Constructor that sets the name of interface and sets the services. |
|
Interface(java.lang.String name,
java.lang.String service)
Constructor that sets the name and adds service. |
|
Interface(java.lang.String name,
java.lang.String service,
long losttime)
Constructor that sets the name to interface and adds service and outage with lost time. |
|
Interface(java.lang.String name,
java.lang.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(java.lang.String service)
Adds a new service to this interface |
void |
addService(java.lang.String service,
long losttime)
Adds a new service to this interface. |
void |
addService(java.lang.String service,
long losttime,
long regainedtime)
Adds a service to this interface with outage having lost time and regained time. |
boolean |
equals(java.lang.Object obj)
|
long |
getDownTime(long currentTime,
long rollingWindow)
Returns the down time for this interface. |
Service |
getService(java.lang.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. |
java.util.List |
getServices()
Return the services |
Methods inherited from class org.opennms.report.datablock.StandardNamedObject |
getName, setName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.ArrayList m_services
Constructor Detail |
public Interface()
public Interface(java.lang.String name, java.util.ArrayList services)
name
- Name of the interface.services
- Services to be set for this interface.public Interface(java.lang.String name, java.lang.String service)
name
- Name of the interface.service
- Name of the service to be addedpublic Interface(java.lang.String name, java.lang.String service, long losttime)
name
- Name of the interface.service
- Name of the service to be addedlosttime
- Lost timepublic Interface(java.lang.String name, java.lang.String service, long losttime, long regainedtime)
name
- Name of the interface.service
- Name of the service to be addedlosttime
- Lost timeregainedtime
- Regained Timepublic Interface(java.lang.String name)
name
- Name of the interface.public Interface(java.util.ArrayList services)
services
- Services for this interface to be set.Method Detail |
public java.util.List getServices()
public Service getService(java.lang.String svcname)
svcname
- The service name to lookup.
public void addService(Service service)
service
- The service to be add.public void addService(java.lang.String service)
service
- The name of the service to add.public void addService(java.lang.String service, long losttime)
service
- Service name to be addedlosttime
- Outage with lost time to be added to servicepublic void addService(java.lang.String service, long losttime, long regainedtime)
service
- Service namelosttime
- Lost timeregainedtime
- Regained Timepublic long getDownTime(long currentTime, long rollingWindow)
currentTime
- End of rolling windowrollingWindow
- Rolling Window
public int getServiceCount()
public int getServiceAffectCount()
public boolean equals(java.lang.Object obj)
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |