|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.measurement.MeasurementDataManagerBean
public class MeasurementDataManagerBean
A manager for MeasurementDatas.
| Constructor Summary | |
|---|---|
MeasurementDataManagerBean()
|
|
| Method Summary | |
|---|---|
void |
addNumericData(Set<org.rhq.core.domain.measurement.MeasurementDataNumeric> data)
Add metrics data to the database. |
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)
Return the Traits for the passed resource. |
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 numDataPoints)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MeasurementDataManagerBean()
| Method Detail |
|---|
public int purgeTraits(long oldest)
purgeTraits in interface MeasurementDataManagerLocalpublic void mergeMeasurementReport(org.rhq.core.domain.measurement.MeasurementReport report)
mergeMeasurementReport in interface MeasurementDataManagerLocalpublic void addNumericData(Set<org.rhq.core.domain.measurement.MeasurementDataNumeric> data)
addNumericData in interface MeasurementDataManagerLocaldata - the actual data pointspublic void addTraitData(Set<org.rhq.core.domain.measurement.MeasurementDataTrait> data)
addTraitData in interface MeasurementDataManagerLocal
public 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
findNarrowedMetricDisplaySummariesForResourcesAndParent in interface MeasurementDataManagerLocalsubject - 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
public 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)
MeasurementDataManagerLocalMetricDisplaySummary only contains the metric name and number of alerts. All other fields
are not set.
findNarrowedMetricsDisplaySummariesForCompGroup in interface MeasurementDataManagerLocalsubject - subject of the callergroup - compatible group
public 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)
findNarrowedMetricsDisplaySummariesForAutoGroup in interface MeasurementDataManagerLocal
public 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.
findNarrowedMetricDisplaySummariesForCompatibleResources in interface MeasurementDataManagerLocal@Nullable public org.rhq.core.domain.measurement.MeasurementDataTrait getCurrentTraitForSchedule(int scheduleId)
getCurrentTraitForSchedule in interface MeasurementDataManagerLocalscheduleId - id of a MeasurementSchedule that 'points' to a Trait
@Nullable public org.rhq.core.domain.measurement.MeasurementDataNumeric getCurrentNumericForSchedule(int scheduleId)
MeasurementDataManagerLocal
getCurrentNumericForSchedule in interface MeasurementDataManagerLocalscheduleId - id of a MeasurementSchedule that 'points' to a MeasurementDataNumeric record
public MeasurementAggregate getAggregate(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long startTime,
long endTime)
MeasurementDataManagerLocal
getAggregate in interface MeasurementDataManagerLocalgetAggregate in interface MeasurementDataManagerRemotesubject - the user requesting the aggregatescheduleId - the id of the MeasurementSchedule for which this aggregate is being requested
public MeasurementAggregate getAggregate(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long startTime,
long endTime)
getAggregate in interface MeasurementDataManagerLocal
public List<org.rhq.core.domain.measurement.MeasurementDataTrait> findCurrentTraitsForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.measurement.DisplayType displayType)
findCurrentTraitsForResource in interface MeasurementDataManagerLocalfindCurrentTraitsForResource in interface MeasurementDataManagerRemoteresourceId - Id of the resource we are interested indisplayType - A display type for filtering or null for all traits.
public 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)
MeasurementDataManagerLocal
findDataForCompatibleGroup in interface MeasurementDataManagerLocalfindDataForCompatibleGroup in interface MeasurementDataManagerRemote
public 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)
findDataForContext in interface MeasurementDataManagerLocal
public 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 numDataPoints)
findDataForResource in interface MeasurementDataManagerLocalfindDataForResource in interface MeasurementDataManagerRemote
public Set<org.rhq.core.domain.measurement.MeasurementData> findLiveData(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds)
MeasurementDataManagerLocal
findLiveData in interface MeasurementDataManagerLocalfindLiveData in interface MeasurementDataManagerRemote
public List<org.rhq.core.domain.measurement.MeasurementDataNumeric> findRawData(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long startTime,
long endTime)
findRawData in interface MeasurementDataManagerLocal
public List<org.rhq.core.domain.measurement.MeasurementDataTrait> findTraits(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int definitionId)
findTraits in interface MeasurementDataManagerLocalfindTraits in interface MeasurementDataManagerRemoteresourceId - PK of a ResourcedefinitionId - PK of a MeasurementDefinition
MeasurementDataTrait objects.
public 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)
MeasurementDataManagerLocalcriteria.
findTraitsByCriteria in interface MeasurementDataManagerLocalfindTraitsByCriteria in interface MeasurementDataManagerRemotesubject - the user that is requesting the traitscriteria - the criteria by which to filter the traits
criteria; never null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||