org.rhq.enterprise.gui.legacy.util
Class MonitorUtils

java.lang.Object
  extended by org.rhq.enterprise.gui.legacy.util.MonitorUtils

public class MonitorUtils
extends Object


Field Summary
static String BEGIN
           
static int DEFAULT_CURRENTHEALTH_LASTN
           
static String END
           
static String LASTN
           
static String RO
           
static String THRESHOLD_BASELINE_LABEL
           
static int THRESHOLD_BASELINE_VALUE
           
static String THRESHOLD_HIGH_RANGE_LABEL
           
static int THRESHOLD_HIGH_RANGE_VALUE
           
static String THRESHOLD_LOW_RANGE_LABEL
           
static int THRESHOLD_LOW_RANGE_VALUE
           
static int THRESHOLD_OVER_VALUE
           
static int THRESHOLD_UNDER_VALUE
           
static String UNIT
           
 
Constructor Summary
MonitorUtils()
           
 
Method Summary
static Integer formatMetrics(List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary> metricDisplaySummaries, Locale userLocale, org.apache.struts.util.MessageResources msgs)
           
static void formatSimpleMetrics(org.rhq.core.domain.measurement.ui.MetricDisplaySummary summary, Locale userLocale)
          Formats the passed summary.
static org.rhq.core.domain.measurement.composite.MeasurementValueAndUnits[] getMeasurementValueAndUnits(double[] metricValueDoubles, String units)
           
static List<org.apache.struts.util.LabelValueBean> getThresholdMenu()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RO

public static final String RO
See Also:
Constant Field Values

LASTN

public static final String LASTN
See Also:
Constant Field Values

UNIT

public static final String UNIT
See Also:
Constant Field Values

BEGIN

public static final String BEGIN
See Also:
Constant Field Values

END

public static final String END
See Also:
Constant Field Values

DEFAULT_CURRENTHEALTH_LASTN

public static final int DEFAULT_CURRENTHEALTH_LASTN
See Also:
Constant Field Values

THRESHOLD_BASELINE_VALUE

public static final int THRESHOLD_BASELINE_VALUE
See Also:
Constant Field Values

THRESHOLD_BASELINE_LABEL

public static final String THRESHOLD_BASELINE_LABEL
See Also:
Constant Field Values

THRESHOLD_HIGH_RANGE_VALUE

public static final int THRESHOLD_HIGH_RANGE_VALUE
See Also:
Constant Field Values

THRESHOLD_HIGH_RANGE_LABEL

public static final String THRESHOLD_HIGH_RANGE_LABEL
See Also:
Constant Field Values

THRESHOLD_LOW_RANGE_VALUE

public static final int THRESHOLD_LOW_RANGE_VALUE
See Also:
Constant Field Values

THRESHOLD_LOW_RANGE_LABEL

public static final String THRESHOLD_LOW_RANGE_LABEL
See Also:
Constant Field Values

THRESHOLD_UNDER_VALUE

public static final int THRESHOLD_UNDER_VALUE
See Also:
Constant Field Values

THRESHOLD_OVER_VALUE

public static final int THRESHOLD_OVER_VALUE
See Also:
Constant Field Values
Constructor Detail

MonitorUtils

public MonitorUtils()
Method Detail

formatMetrics

public static Integer formatMetrics(List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary> metricDisplaySummaries,
                                    Locale userLocale,
                                    org.apache.struts.util.MessageResources msgs)

formatSimpleMetrics

public static void formatSimpleMetrics(org.rhq.core.domain.measurement.ui.MetricDisplaySummary summary,
                                       Locale userLocale)
Formats the passed summary. The userLocale is currently ignored

Parameters:
summary - MetricDisplaySummary with some values
userLocale - ignored

getMeasurementValueAndUnits

public static org.rhq.core.domain.measurement.composite.MeasurementValueAndUnits[] getMeasurementValueAndUnits(double[] metricValueDoubles,
                                                                                                               String units)

getThresholdMenu

public static List<org.apache.struts.util.LabelValueBean> getThresholdMenu()


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