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 java.lang.Object implements SurveillanceStatus
-
-
Constructor Summary
Constructors Constructor Description SimpleSurveillanceStatus(java.lang.Number serviceOutages, java.lang.Number upNodeCount, java.lang.Number nodeCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getDownEntityCount()
The number of nodes that do not have at least one service upjava.lang.String
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 outagejava.lang.Integer
getTotalEntityCount()
The total number of nodes represented by this status
-
-
-
Method Detail
-
getDownEntityCount
public java.lang.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 java.lang.Integer getTotalEntityCount()
Description copied from interface:SurveillanceStatus
The total number of nodes represented by this status- Specified by:
getTotalEntityCount
in interfaceSurveillanceStatus
-
getStatus
public java.lang.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
-
-