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 IntegergetDownEntityCount()The number of nodes that do not have at least one service upStringgetStatus()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 outageIntegergetTotalEntityCount()The total number of nodes represented by this status
-
-
-
Method Detail
-
getDownEntityCount
public Integer getDownEntityCount()
Description copied from interface:SurveillanceStatusThe number of nodes that do not have at least one service up- Specified by:
getDownEntityCountin interfaceSurveillanceStatus
-
getTotalEntityCount
public Integer getTotalEntityCount()
Description copied from interface:SurveillanceStatusThe total number of nodes represented by this status- Specified by:
getTotalEntityCountin interfaceSurveillanceStatus
-
getStatus
public String getStatus()
Description copied from interface:SurveillanceStatusA 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:
getStatusin interfaceSurveillanceStatus
-
-