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 StringALL_NODES_UPConstantALL_NODES_UP="Normal"static StringNODES_ARE_DOWNConstantNODES_ARE_DOWN="Critical"static StringONE_SERVICE_DOWNConstantONE_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 IntegergetDownEntityCount()getDownEntityCountList<OnmsNode>getDownNodes()getDownNodesStringgetLabel()getLabelStringgetLink()getLinkStringgetStatus()getStatusIntegergetTotalEntityCount()getTotalEntityCountvoidsetLabel(String label)setLabelvoidsetLink(String link)setLinkStringtoString()
-
-
-
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- aCollectionobject.
-
-
Method Detail
-
getStatus
public String getStatus()
getStatus
- Specified by:
getStatusin interfaceSurveillanceStatus- Returns:
- a
Stringobject.
-
getDownEntityCount
public Integer getDownEntityCount()
getDownEntityCount
- Specified by:
getDownEntityCountin interfaceSurveillanceStatus- Returns:
- a
Integerobject.
-
getTotalEntityCount
public Integer getTotalEntityCount()
getTotalEntityCount
- Specified by:
getTotalEntityCountin interfaceSurveillanceStatus- Returns:
- a
Integerobject.
-
-