Examples of MeasurementValueAndUnits


Examples of org.rhq.core.domain.measurement.composite.MeasurementValueAndUnits

                String[] keys = metricDisplaySummary.getMetricKeys();
                if (keys.length != formattedValues.length) {
                    throw new IllegalStateException("Formatting metrics failed.");
                }
                for (int i = 0; i < keys.length; i++) {
                    MeasurementValueAndUnits valueAndUnits = formattedValues[i];
                    String formatted = MeasurementConverter.format(((Double) valueAndUnits.getValue()), valueAndUnits
                        .getUnits(), true);
                    metricDisplaySummary.getMetric(keys[i]).setValueFmt(formatted);
                }
            }
        } catch (IllegalArgumentException e) { // catch and rethrow for debug/logging only
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.