public interface MeasurementDataManagerLocal
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<org.rhq.core.domain.measurement.MeasurementDataTrait> |
findCurrentTraitsForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.measurement.DisplayType displayType) |
List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> |
findDataForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long beginTime,
long endTime,
int numPoints)
Returns a list of numeric data point lists for the given compatible group - one per specified measurement
definition.
|
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) |
List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> |
findDataForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds,
long beginTime,
long endTime,
int numPoints) |
Set<org.rhq.core.domain.measurement.MeasurementData> |
findLiveData(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds)
Get live metrics for a given MeasurementSchedule
|
Set<org.rhq.core.domain.measurement.MeasurementData> |
findLiveDataForGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds,
int[] definitionIds)
Get live metrics 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)
|
List<org.rhq.core.domain.measurement.MeasurementDataTrait> |
findTraits(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int definitionId)
Return all known trait data for the passed schedule, defined by resourceId and definitionId
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.MeasurementDataTrait> |
findTraitsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.MeasurementDataTraitCriteria criteria)
Finds traits that match the specified
criteria. |
MeasurementAggregate |
getAggregate(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long startTime,
long endTime) |
MeasurementAggregate |
getAggregate(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long startTime,
long endTime)
Get the aggregate values of the numerical values for a given schedule.
|
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) |
int |
purgeTraits(long oldest) |
int purgeTraits(long oldest)
void 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)
MeasurementAggregate getAggregate(org.rhq.core.domain.auth.Subject subject, int scheduleId, long startTime, long endTime)
subject - the user requesting the aggregatescheduleId - the id of the MeasurementSchedule for which this aggregate is being requestedstart - the start timeend - the end timeFetchException - if the schedule does not reference numerical data or if the user is not allowed to view
the Resource corresponding to this scheduleIdMeasurementAggregate getAggregate(org.rhq.core.domain.auth.Subject subject, int groupId, int definitionId, long startTime, long endTime)
List<org.rhq.core.domain.measurement.MeasurementDataTrait> findTraits(org.rhq.core.domain.auth.Subject subject, int resourceId, int definitionId)
resourceId - PK of a ResourcedefinitionId - PK of a MeasurementDefinitionMeasurementDataTrait objects.List<org.rhq.core.domain.measurement.MeasurementDataTrait> findCurrentTraitsForResource(org.rhq.core.domain.auth.Subject subject, int resourceId, org.rhq.core.domain.measurement.DisplayType displayType)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.MeasurementDataTrait> findTraitsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.MeasurementDataTraitCriteria criteria)
criteria.subject - the user that is requesting the traitscriteria - the criteria by which to filter the traitscriteria; never nullSet<org.rhq.core.domain.measurement.MeasurementData> findLiveData(org.rhq.core.domain.auth.Subject subject, int resourceId, int[] definitionIds)
subject - the user that is requesting the dataresourceId - the id of the resourcedefinitionIds - the array of ids of schedule definitionsSet<org.rhq.core.domain.measurement.MeasurementData> findLiveDataForGroup(org.rhq.core.domain.auth.Subject subject, int groupId, int[] resourceIds, int[] definitionIds)
subject - the user that is requesting the dataresourceId - the array of ids of the resourcesdefinitionIds - the array of ids of schedule definitionsList<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> findDataForCompatibleGroup(org.rhq.core.domain.auth.Subject subject, int groupId, int definitionId, long beginTime, long endTime, int numPoints)
subject - compatibleGroupId - measurementDefinitionId - measurement definition id for numeric metric associated with the given compatible
groupbeginTime - endTime - numberOfDataPoints - List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> findDataForResource(org.rhq.core.domain.auth.Subject subject, int resourceId, int[] definitionIds, long beginTime, long endTime, int numPoints)
List<org.rhq.core.domain.measurement.MeasurementDataNumeric> findRawData(org.rhq.core.domain.auth.Subject subject, int scheduleId, long startTime, long endTime)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.