Package org.opennms.web.svclayer.model
Class AggregateStatus
- java.lang.Object
-
- org.opennms.web.svclayer.model.AggregateStatus
-
- All Implemented Interfaces:
SurveillanceStatus
public class AggregateStatus extends Object implements SurveillanceStatus
Use this class to aggregate status to be presented in a view layer technology.- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- David Hustace, Mathew Brozowski, DJ Gregor
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALL_NODES_UP
ConstantALL_NODES_UP="Normal"
static String
NODES_ARE_DOWN
ConstantNODES_ARE_DOWN="Critical"
static String
ONE_SERVICE_DOWN
ConstantONE_SERVICE_DOWN="Warning"
-
Constructor Summary
Constructors Constructor Description AggregateStatus(Collection<OnmsNode> nodes)
Constructor for AggregateStatus.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getDownEntityCount()
getDownEntityCountList<OnmsNode>
getDownNodes()
getDownNodesString
getLabel()
getLabelString
getLink()
getLinkString
getStatus()
getStatusInteger
getTotalEntityCount()
getTotalEntityCountvoid
setLabel(String label)
setLabelvoid
setLink(String link)
setLinkString
toString()
-
-
-
Field Detail
-
NODES_ARE_DOWN
public static final String NODES_ARE_DOWN
ConstantNODES_ARE_DOWN="Critical"
- See Also:
- Constant Field Values
-
ONE_SERVICE_DOWN
public static final String ONE_SERVICE_DOWN
ConstantONE_SERVICE_DOWN="Warning"
- See Also:
- Constant Field Values
-
ALL_NODES_UP
public static final String ALL_NODES_UP
ConstantALL_NODES_UP="Normal"
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AggregateStatus
public AggregateStatus(Collection<OnmsNode> nodes)
Constructor for AggregateStatus.
- Parameters:
nodes
- aCollection
object.
-
-
Method Detail
-
getStatus
public String getStatus()
getStatus
- Specified by:
getStatus
in interfaceSurveillanceStatus
- Returns:
- a
String
object.
-
getDownEntityCount
public Integer getDownEntityCount()
getDownEntityCount
- Specified by:
getDownEntityCount
in interfaceSurveillanceStatus
- Returns:
- a
Integer
object.
-
getTotalEntityCount
public Integer getTotalEntityCount()
getTotalEntityCount
- Specified by:
getTotalEntityCount
in interfaceSurveillanceStatus
- Returns:
- a
Integer
object.
-
-