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.

Author:
John Mazzitelli

Field Summary
static String CONCURRENCY_LIMIT_MEASUREMENT_REPORT
           
static String CONCURRENCY_LIMIT_MEASUREMENT_SCHEDULE_REQUEST
           
 
Method Summary
 Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> getLatestSchedulesForResourceId(int resourceIds, boolean getChildSchedules)
          Asks the server to return all measurement schedules for the given resource and optionally its child resources.
 Set<org.rhq.core.domain.measurement.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(org.rhq.core.domain.measurement.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(org.rhq.core.domain.measurement.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<org.rhq.core.domain.measurement.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<org.rhq.core.domain.measurement.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-2012 Red Hat, Inc.. All Rights Reserved.