public interface MeasurementFacet
| Modifier and Type | Method and Description |
|---|---|
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
Collects measurement data exposed by managed resources and returns that data in a measurement report.
|
void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
throws Exception
requests specify which metrics are being requested. All
collected data should be added to the provided report.
If there is no data available for one of the requested metrics, there are several ways an implementation of this method can indicate that:
datum to the reportdatum with a value of null to the reportdatum with a value
of Double.NaN to the report
The key to the improvement in metric collection performance and reduction in monitoring overhead is to take
advantage of the situations where a single remote call can return more than one piece of data; e.g. a JMX MBean
getAttributes call, or
a database SELECT.
report - the report to which all collected measurement data should be addedmetrics - a set of requests describing the metrics being requestedException - if the component failed to obtain one or more valuesCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.