org.opennms.web.svclayer
Class AggregateStatus

java.lang.Object
  extended by org.opennms.web.svclayer.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
static String ALL_NODES_UP
          Constant ALL_NODES_UP="Normal"
static String NODES_ARE_DOWN
          Constant NODES_ARE_DOWN="Critical"
static String ONE_SERVICE_DOWN
          Constant ONE_SERVICE_DOWN="Warning"
 
Constructor Summary
AggregateStatus(Collection<OnmsNode> nodes)
          Constructor for AggregateStatus.
 
Method Summary
 Integer getDownEntityCount()
          getDownEntityCount
 List<OnmsNode> getDownNodes()
          getDownNodes
 String getLabel()
          getLabel
 String getLink()
          getLink
 String getStatus()
          getStatus
 Integer getTotalEntityCount()
          getTotalEntityCount
 void setLabel(String label)
          setLabel
 void setLink(String link)
          setLink
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODES_ARE_DOWN

public static final String NODES_ARE_DOWN
Constant NODES_ARE_DOWN="Critical"

See Also:
Constant Field Values

ONE_SERVICE_DOWN

public static final String ONE_SERVICE_DOWN
Constant ONE_SERVICE_DOWN="Warning"

See Also:
Constant Field Values

ALL_NODES_UP

public static final String ALL_NODES_UP
Constant ALL_NODES_UP="Normal"

See Also:
Constant Field Values
Constructor Detail

AggregateStatus

public AggregateStatus(Collection<OnmsNode> nodes)

Constructor for AggregateStatus.

Parameters:
nodes - a Collection object.
Method Detail

getStatus

public String getStatus()

getStatus

Specified by:
getStatus in interface SurveillanceStatus
Returns:
a String object.

getDownEntityCount

public Integer getDownEntityCount()

getDownEntityCount

Specified by:
getDownEntityCount in interface SurveillanceStatus
Returns:
a Integer object.

getDownNodes

public List<OnmsNode> getDownNodes()

getDownNodes

Returns:
a Set object.

getLabel

public String getLabel()

getLabel

Returns:
a String object.

setLabel

public void setLabel(String label)

setLabel

Parameters:
label - a String object.

getTotalEntityCount

public Integer getTotalEntityCount()

getTotalEntityCount

Specified by:
getTotalEntityCount in interface SurveillanceStatus
Returns:
a Integer object.

toString

public String toString()

Overrides:
toString in class Object

getLink

public String getLink()

getLink

Returns:
a String object.

setLink

public void setLink(String link)

setLink

Parameters:
link - a String object.


Copyright © 2011. All Rights Reserved.