public class MeasurementBaselineManagerBean extends Object implements MeasurementBaselineManagerLocal, MeasurementBaselineManagerRemote
MeasurementBaselines.| Constructor and Description |
|---|
MeasurementBaselineManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
int |
_calculateAutoBaselinesDELETE(long olderThanTime)
Deletes baselines that are older than the time specified
|
int |
_calculateAutoBaselinesINSERT(long amountOfData)
Inserts baselines "as appropriate" for measurements that have at least amountOfData
|
org.rhq.core.domain.measurement.MeasurementBaseline |
calculateAutoBaseline(org.rhq.core.domain.auth.Subject subject,
Integer measurementScheduleId,
long startDate,
long endDate,
boolean save)
Calculate a baseline value for the given metric based on the specified date range, optionally setting the
metric's baseline to the calculated value.
|
org.rhq.core.domain.measurement.MeasurementBaseline |
calculateAutoBaseline(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long startDate,
long endDate,
boolean save) |
org.rhq.core.domain.measurement.MeasurementBaseline |
calculateAutoBaselineForGroupInNewTransaction(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long startDate,
long endDate,
boolean save) |
org.rhq.core.domain.measurement.MeasurementBaseline |
calculateAutoBaselineInNewTransaction(org.rhq.core.domain.auth.Subject subject,
Integer measurementScheduleId,
long startDate,
long endDate,
boolean save) |
void |
calculateAutoBaselines()
This is the entry point which calls out to all other *calculateAutoBaselines* methods seen
in this interface.
|
long |
calculateAutoBaselines(long amountOfData,
long baselinesOlderThanTime)
Calculates baselines for all scheduled measurements.
|
void |
enableAutoBaselineCalculation(org.rhq.core.domain.auth.Subject subject,
Integer[] resourceIds,
Integer[] definitionIds)
Unset the
user-entered property in baselines so that we can
do autobaselines on it again. |
List<org.rhq.core.domain.measurement.MeasurementBaseline> |
findBaselinesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Return a list of
MeasurementBaseline objects for the Resource represented by the given id. |
org.rhq.core.domain.measurement.MeasurementBaseline |
getBaselineIfEqual(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId)
If the measurement baselines for the corresponding resources are the same, that value will be returned;
otherwise null will be returned
|
public void calculateAutoBaselines()
MeasurementBaselineManagerLocalcalculateAutoBaselines in interface MeasurementBaselineManagerLocalpublic long calculateAutoBaselines(long amountOfData,
long baselinesOlderThanTime)
MeasurementBaselineManagerLocalcalculateAutoBaselines in interface MeasurementBaselineManagerLocalamountOfData - will use amountOfData to compute new min/max/mean for baselines as appropriatebaselinesOlderThanTime - deletes baselines older than the time specifiedpublic int _calculateAutoBaselinesDELETE(long olderThanTime)
throws Exception
MeasurementBaselineManagerLocal_calculateAutoBaselinesDELETE in interface MeasurementBaselineManagerLocalolderThanTime - deletes baselines older than the time specifiedExceptionpublic int _calculateAutoBaselinesINSERT(long amountOfData)
throws Exception
MeasurementBaselineManagerLocal_calculateAutoBaselinesINSERT in interface MeasurementBaselineManagerLocalamountOfData - will use amountOfData to compute new min/max/mean for baselines as appropriateExceptionpublic org.rhq.core.domain.measurement.MeasurementBaseline getBaselineIfEqual(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId)
getBaselineIfEqual in interface MeasurementBaselineManagerLocalpublic org.rhq.core.domain.measurement.MeasurementBaseline calculateAutoBaseline(org.rhq.core.domain.auth.Subject subject,
Integer measurementScheduleId,
long startDate,
long endDate,
boolean save)
throws BaselineCreationException,
MeasurementNotFoundException
MeasurementBaselineManagerLocalcalculateAutoBaseline in interface MeasurementBaselineManagerLocalmeasurementScheduleId - measurement id to recalc.startDate - begin date rangeendDate - end date rangesave - whether or not to save the recalculated baselineBaselineCreationExceptionMeasurementNotFoundExceptionpublic org.rhq.core.domain.measurement.MeasurementBaseline calculateAutoBaselineInNewTransaction(org.rhq.core.domain.auth.Subject subject,
Integer measurementScheduleId,
long startDate,
long endDate,
boolean save)
throws BaselineCreationException,
MeasurementNotFoundException
calculateAutoBaselineInNewTransaction in interface MeasurementBaselineManagerLocalBaselineCreationExceptionMeasurementNotFoundExceptionpublic org.rhq.core.domain.measurement.MeasurementBaseline calculateAutoBaseline(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long startDate,
long endDate,
boolean save)
throws BaselineCreationException,
MeasurementNotFoundException
calculateAutoBaseline in interface MeasurementBaselineManagerLocalBaselineCreationExceptionMeasurementNotFoundExceptionpublic org.rhq.core.domain.measurement.MeasurementBaseline calculateAutoBaselineForGroupInNewTransaction(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long startDate,
long endDate,
boolean save)
throws BaselineCreationException,
MeasurementNotFoundException
calculateAutoBaselineForGroupInNewTransaction in interface MeasurementBaselineManagerLocalBaselineCreationExceptionMeasurementNotFoundExceptionpublic void enableAutoBaselineCalculation(org.rhq.core.domain.auth.Subject subject,
Integer[] resourceIds,
Integer[] definitionIds)
MeasurementBaselineManagerLocaluser-entered property in baselines so that we can
do autobaselines on it again.enableAutoBaselineCalculation in interface MeasurementBaselineManagerLocaldefinitionIds - measurement definition IDspublic List<org.rhq.core.domain.measurement.MeasurementBaseline> findBaselinesForResource(org.rhq.core.domain.auth.Subject subject, int resourceId)
MeasurementBaselineManagerLocalMeasurementBaseline objects for the Resource represented by the given id.findBaselinesForResource in interface MeasurementBaselineManagerLocalfindBaselinesForResource in interface MeasurementBaselineManagerRemotesubject - the user request to view the baseline history for the given resourceresourceId - the id of the resource whose baselines are to be returnedCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.