org.rhq.core.domain.measurement.ui
Class MeasurementSummary

java.lang.Object
  extended by org.rhq.core.domain.measurement.ui.MeasurementSummary
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BaseMetricDisplay

public class MeasurementSummary
extends Object
implements Serializable

This holds the number of metrics of this type configured (the template type) for the resource under discussion; the count of those currently collecting data, the ones that aren't and the total. When displaying availability status on an aggregate of resources, each resource will counted in one of these buckets

  1. availUp
    Resources that are configured for metric collection and for which we are currently collecting data
  2. availDown
    Resources that are configured for metric collection and for which we are not currently collecting data i.e. the resource is down, as far as we can tell
  3. availUnknown
    This is the number of resources for which metric collection is configured but whose availability status is unknown

See Also:
Serialized Form

Constructor Summary
MeasurementSummary()
          Default Constructor
MeasurementSummary(Integer up, Integer down, Integer unknown)
          Constructor with init values
 
Method Summary
 List<Integer> asList()
          Returns a three element list with up, down and unknown
 Integer getAvailDown()
           
 Integer getAvailUnknown()
           
 Integer getAvailUp()
           
 void setAvailDown(Integer unavailConfigured)
           
 void setAvailUnknown(Integer totalConfigured)
          Sets the availUnknown.
 void setAvailUp(Integer currentConfigured)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasurementSummary

public MeasurementSummary()
Default Constructor


MeasurementSummary

public MeasurementSummary(Integer up,
                          Integer down,
                          Integer unknown)
Constructor with init values

Method Detail

getAvailUp

public Integer getAvailUp()
Returns:
Integer

setAvailUp

public void setAvailUp(Integer currentConfigured)
Parameters:
availUp - The availUp to set

getAvailDown

public Integer getAvailDown()
Returns:
Integer

setAvailDown

public void setAvailDown(Integer unavailConfigured)
Parameters:
availDown - The availDown to set

getAvailUnknown

public Integer getAvailUnknown()
Returns:
Integer

setAvailUnknown

public void setAvailUnknown(Integer totalConfigured)
Sets the availUnknown.

Parameters:
availUnknown - The availUnknown to set

asList

public List<Integer> asList()
Returns a three element list with up, down and unknown

Returns:
List

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.