Package org.opennms.netmgt.dao.hibernate
Class NodeDaoHibernate.SimpleSurveillanceStatus
- java.lang.Object
-
- org.opennms.netmgt.dao.hibernate.NodeDaoHibernate.SimpleSurveillanceStatus
-
- All Implemented Interfaces:
SurveillanceStatus
- Enclosing class:
- NodeDaoHibernate
public static class NodeDaoHibernate.SimpleSurveillanceStatus extends Object implements SurveillanceStatus
-
-
Constructor Summary
Constructors Constructor Description SimpleSurveillanceStatus(Number serviceOutages, Number upNodeCount, Number nodeCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getDownEntityCount()
The number of nodes that do not have at least one service upString
getStatus()
A string presenting the status of the associated set of nodes Possible values are: 'Normal' representing that there are no ouages for active services on the set of associated nodes 'Warning' representing exactly one service from set of all active services on the associated nodes has an outage 'Critical' representing that more than one service on the from the set of all active services on the assocuate nodes has an outageInteger
getTotalEntityCount()
The total number of nodes represented by this status
-
-
-
Method Detail
-
getDownEntityCount
public Integer getDownEntityCount()
Description copied from interface:SurveillanceStatus
The number of nodes that do not have at least one service up- Specified by:
getDownEntityCount
in interfaceSurveillanceStatus
-
getTotalEntityCount
public Integer getTotalEntityCount()
Description copied from interface:SurveillanceStatus
The total number of nodes represented by this status- Specified by:
getTotalEntityCount
in interfaceSurveillanceStatus
-
getStatus
public String getStatus()
Description copied from interface:SurveillanceStatus
A string presenting the status of the associated set of nodes Possible values are:- 'Normal' representing that there are no ouages for active services on the set of associated nodes
- 'Warning' representing exactly one service from set of all active services on the associated nodes has an outage
- 'Critical' representing that more than one service on the from the set of all active services on the assocuate nodes has an outage
- Specified by:
getStatus
in interfaceSurveillanceStatus
-
-