org.rhq.core.clientapi.server.measurement
Interface MeasurementServerService


public interface MeasurementServerService

The server-side interface that provides access to the metric reporting facilities. Agents will use this interface to report new metric data to the server.


Field Summary
static String CONCURRENCY_LIMIT_MEASUREMENT_REPORT
           
static String CONCURRENCY_LIMIT_MEASUREMENT_SCHEDULE_REQUEST
           
 
Method Summary
 Set<ResourceMeasurementScheduleRequest> getLatestSchedulesForResourceId(int resourceIds, boolean getChildSchedules)
          Asks the server to return all measurement schedules for the given resource and optionally its child resources.
 Set<ResourceMeasurementScheduleRequest> getLatestSchedulesForResourceIds(Set<Integer> resourceIds, boolean getChildSchedules)
          Asks the server to return all measurement schedules for the given resources and optionally their child resources.
 void mergeMeasurementReport(MeasurementReport report)
          This method is called when new measurements are to be reported from an agent to the server.
 

Field Detail

CONCURRENCY_LIMIT_MEASUREMENT_REPORT

static final String CONCURRENCY_LIMIT_MEASUREMENT_REPORT
See Also:
Constant Field Values

CONCURRENCY_LIMIT_MEASUREMENT_SCHEDULE_REQUEST

static final String CONCURRENCY_LIMIT_MEASUREMENT_SCHEDULE_REQUEST
See Also:
Constant Field Values
Method Detail

mergeMeasurementReport

@Asynchronous(guaranteedDelivery=true)
@LimitedConcurrency(value="rhq.server.concurrency-limit.measurement-report")
void mergeMeasurementReport(MeasurementReport report)
This method is called when new measurements are to be reported from an agent to the server.

Parameters:
report - the report containing the metric data

getLatestSchedulesForResourceIds

@LimitedConcurrency(value="rhq.server.concurrency-limit.measurement-schedule-request")
Set<ResourceMeasurementScheduleRequest> getLatestSchedulesForResourceIds(Set<Integer> resourceIds,
                                                                                                 boolean getChildSchedules)
Asks the server to return all measurement schedules for the given resources and optionally their child resources.

Parameters:
resourceIds - identifies resources whose schedules are to be returned
getChildSchedules - if true the schedules for an entire subtree will be retrieved
Returns:
set of all measurement schedules for the resources and their children resources, if applicable

getLatestSchedulesForResourceId

@LimitedConcurrency(value="rhq.server.concurrency-limit.measurement-schedule-request")
Set<ResourceMeasurementScheduleRequest> getLatestSchedulesForResourceId(int resourceIds,
                                                                                                boolean getChildSchedules)
Asks the server to return all measurement schedules for the given resource and optionally its child resources.

Parameters:
resourceId - identifies the resource whose schedules are to be returned
getChildSchedules - if true the schedules for an entire subtree will be retrieved
Returns:
set of all measurement schedules for the resource and its children resources, if applicable


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