|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MeasurementAgentService
The interface to a JON Agent's measurement (i.e. metric collection) subsystem.
| Method Summary | |
|---|---|
Set<Integer> |
getMeasurementScheduleIdsForResource(int resourceId)
|
Set<MeasurementData> |
getRealTimeMeasurementValue(int resourceId,
DataType dataType,
String... measurementNames)
This method is a way for the caller to ask for measurement collections to occur "now". |
void |
scheduleCollection(Set<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<ResourceMeasurementScheduleRequest> resourceSchedules)
Updates the schedule for a group of measurements on the agent. |
| Method Detail |
|---|
void scheduleCollection(Set<ResourceMeasurementScheduleRequest> resourceSchedules)
resourceSchedules - list of the schedules that are to be added to the agentvoid updateCollection(Set<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 collection
Set<MeasurementData> getRealTimeMeasurementValue(int resourceId,
DataType dataType,
String... measurementNames)
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.
resourceId - id of resource to collect fromdataType - the data type of the of the metrics to be collected - either
DataType.MEASUREMENT or DataType.TRAITmeasurementNames - the names of the numeric metrics or traits to be collected
Set<Integer> getMeasurementScheduleIdsForResource(int resourceId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||