public interface MeasurementDataManagerLocal extends MeasurementDataManagerRemote
MeasurementDatas.| Modifier and Type | Method and Description |
|---|---|
void |
addNumericData(Set<org.rhq.core.domain.measurement.MeasurementDataNumeric> data) |
void |
addTraitData(Set<org.rhq.core.domain.measurement.MeasurementDataTrait> data) |
List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> |
findDataForContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context,
int definitionId,
long beginTime,
long endTime,
int numDataPoints) |
Set<org.rhq.core.domain.measurement.MeasurementData> |
findLiveData(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds,
Long timeout)
Get live metrics from the agent for a given MeasurementSchedule
|
Map<Integer,List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary>> |
findNarrowedMetricDisplaySummariesForCompatibleResources(org.rhq.core.domain.auth.Subject subject,
Collection<org.rhq.core.domain.resource.Resource> resources,
long beginTime,
long endTime)
Deprecated.
portal-war
|
Map<Integer,List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary>> |
findNarrowedMetricDisplaySummariesForResourcesAndParent(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId,
int parentId,
List<Integer> resourceIds,
long begin,
long end)
Deprecated.
portal-war
|
Map<Integer,List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary>> |
findNarrowedMetricsDisplaySummariesForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int parentId,
int cType,
long beginTime,
long endTime)
Deprecated.
portal-war (it is not used at all)
|
Map<Integer,List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary>> |
findNarrowedMetricsDisplaySummariesForCompGroup(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.ResourceGroup group,
long beginTime,
long endTime)
Deprecated.
portal-war
|
List<org.rhq.core.domain.measurement.MeasurementDataNumeric> |
findRawData(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long startTime,
long endTime)
Deprecated.
portal-war (it is not used at all)
|
org.rhq.core.domain.measurement.MeasurementDataNumeric |
getCurrentNumericForSchedule(int scheduleId)
Return the current numeric value for the passed schedule
|
org.rhq.core.domain.measurement.MeasurementDataTrait |
getCurrentTraitForSchedule(int scheduleId)
Return the current trait value for the passed schedule
|
void |
mergeMeasurementReport(org.rhq.core.domain.measurement.MeasurementReport report) |
void |
updateAlertConditionCache(String callingMethod,
org.rhq.core.domain.measurement.MeasurementData[] data) |
findCurrentTraitsForResource, findDataForCompatibleGroup, findDataForResource, findLiveData, findLiveDataForGroup, findTraits, findTraitsByCriteria, getAggregate, getAggregate, getMeasurementAggregatevoid mergeMeasurementReport(org.rhq.core.domain.measurement.MeasurementReport report)
void addNumericData(Set<org.rhq.core.domain.measurement.MeasurementDataNumeric> data)
void addTraitData(Set<org.rhq.core.domain.measurement.MeasurementDataTrait> data)
org.rhq.core.domain.measurement.MeasurementDataTrait getCurrentTraitForSchedule(int scheduleId)
scheduleId - id of a MeasurementSchedule that 'points' to a Traitorg.rhq.core.domain.measurement.MeasurementDataNumeric getCurrentNumericForSchedule(int scheduleId)
scheduleId - id of a MeasurementSchedule that 'points' to a MeasurementDataNumeric recordMap<Integer,List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary>> findNarrowedMetricsDisplaySummariesForCompGroup(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.resource.group.ResourceGroup group, long beginTime, long endTime)
MetricDisplaySummary only contains the metric name and number of alerts. All other fields
are not set.subject - subject of the callergroup - compatible groupMap<Integer,List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary>> findNarrowedMetricDisplaySummariesForCompatibleResources(org.rhq.core.domain.auth.Subject subject, Collection<org.rhq.core.domain.resource.Resource> resources, long beginTime, long endTime)
MetricDisplaySummarys for the resources passed in, that all need to be of the same
ResourceType. Summaries only contain a basic selection of fields for the purpose of filling the Child
resource popups.Map<Integer,List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary>> findNarrowedMetricsDisplaySummariesForAutoGroup(org.rhq.core.domain.auth.Subject subject, int parentId, int cType, long beginTime, long endTime)
Map<Integer,List<org.rhq.core.domain.measurement.ui.MetricDisplaySummary>> findNarrowedMetricDisplaySummariesForResourcesAndParent(org.rhq.core.domain.auth.Subject subject, int resourceTypeId, int parentId, List<Integer> resourceIds, long begin, long end)
MetricDisplaySummary for the (enabled) schedules of the resourcesubject - Subject of the callerresourceTypeId - ResourceTypeId of the child resourcesparentId - ID of the common parent resourceresourceIds - List of primary keys of the resources we are interested inbegin - begin timeend - end timeList<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> findDataForContext(org.rhq.core.domain.auth.Subject subject, org.rhq.core.domain.common.EntityContext context, int definitionId, long beginTime, long endTime, int numDataPoints)
List<org.rhq.core.domain.measurement.MeasurementDataNumeric> findRawData(org.rhq.core.domain.auth.Subject subject, int scheduleId, long startTime, long endTime)
Set<org.rhq.core.domain.measurement.MeasurementData> findLiveData(org.rhq.core.domain.auth.Subject subject, int resourceId, int[] definitionIds, Long timeout)
subject - the user that is requesting the dataresourceId - the id of the resourcedefinitionIds - the array of ids of schedule definitionstimeout - the amount of time in milliseconds before timing out the request. Should be > 0. If null then default
is applied. Default agent connection failures can be long.void updateAlertConditionCache(String callingMethod, org.rhq.core.domain.measurement.MeasurementData[] data)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.