|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MeasurementDataManagerLocal
A manager for MeasurementDatas.
| Method Summary | |
|---|---|
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 |
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)
Get the MetricDisplaySummarys for the resources passed in, that all need to be of the same
ResourceType. |
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)
Return a map of <resource id, List<MetricDisplaySummary>>, where the list contains the MetricDisplaySummary for the (enabled) schedules of the resource |
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>> |
findNarrowedMetricsDisplaySummariesForCompGroup(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.ResourceGroup group,
long beginTime,
long endTime)
Get metric display summaries for the resources of the passed compatible group, where the MetricDisplaySummary only contains the metric name and number of alerts. |
List<org.rhq.core.domain.measurement.MeasurementDataNumeric> |
findRawData(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long startTime,
long endTime)
|
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)
|
| Method Detail |
|---|
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 Trait
org.rhq.core.domain.measurement.MeasurementDataNumeric getCurrentNumericForSchedule(int scheduleId)
scheduleId - id of a MeasurementSchedule that 'points' to a MeasurementDataNumeric record
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)
MetricDisplaySummary only contains the metric name and number of alerts. All other fields
are not set.
subject - subject of the callergroup - compatible group
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)
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 resource
subject - 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 time
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)
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 time
FetchException - if the schedule does not reference numerical data or if the user is not allowed to view
the Resource corresponding to this scheduleId
MeasurementAggregate 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 MeasurementDefinition
MeasurementDataTrait 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 traits
criteria; never null
Set<org.rhq.core.domain.measurement.MeasurementData> findLiveData(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds)
sched - MeasurementSchedule to obtain the data for
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)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||