public interface MeasurementAgentService
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getMeasurementScheduleInfoForResource(int resourceId) |
Set<org.rhq.core.domain.measurement.MeasurementData> |
getRealTimeMeasurementValue(int resourceId,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
This method is a way for the caller to ask for measurement collections to occur "now".
|
void |
scheduleCollection(Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> resourceSchedules)
Schedules a group of measurements on the agent at specified interval.
|
void |
unscheduleCollection(Set<Integer> resourceIds)
Unschedule previously scheduled measurements for the resources with the specified id's .
|
void |
updateCollection(Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> resourceSchedules)
Updates the schedule for a group of measurements on the agent.
|
void scheduleCollection(Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> resourceSchedules)
resourceSchedules - list of the schedules that are to be added to the agentvoid updateCollection(Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> resourceSchedules)
resourceSchedules - list of schedules that are to be updated on the agentvoid unscheduleCollection(Set<Integer> resourceIds)
resourceIds - list of the resources whose measurements are to be unscheduled from collectionSet<org.rhq.core.domain.measurement.MeasurementData> getRealTimeMeasurementValue(int resourceId, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
Measurement data collected via this call will have its non-persistent "name" field set the name of the measurement, but will not have scheduleIds set except for per minute metrics. Requests for per minute metrics must specify the schedule id. This is because of the way a per minute metric is calculated which involved the previously collected value. That value is obtained from a cache which is keyed by schedule id.
resourceId - id of resource to collect fromrequests - Each request specifies a metric to be collected along with its corresponding data typeCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.