public interface MeasurementBaselineManagerLocal
MeasurementBaselines.| Modifier and Type | Method and Description |
|---|---|
int |
_calculateAutoBaselinesDELETE(long olderThanTime)
Deletes baselines that are older than the time specified
|
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 olderThanTime)
Calculates baselines for all scheduled measurements.
|
void |
calculateBaselines(List<Integer> schedules,
long olderThan,
long amountOfData)
Given a list of schedules, this method calculates and stores baselines using the
amount of 1 hr data specified and older than the time specified.
|
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) |
List<Integer> |
getSchedulesWithoutBaselines()
Note This method exists only for transaction demarcation.
|
void |
saveNewBaselines(List<org.rhq.core.domain.measurement.MeasurementBaseline> baselines)
Persists the newly calculated baselines.
|
void calculateAutoBaselines()
long calculateAutoBaselines(long amountOfData,
long olderThanTime)
amountOfData - will use amountOfData to compute new min/max/mean for baselines as appropriateolderThanTime - deletes baselines older than the time specifiedint _calculateAutoBaselinesDELETE(long olderThanTime)
throws Exception
olderThanTime - deletes baselines older than the time specifiedExceptionList<Integer> getSchedulesWithoutBaselines()
void calculateBaselines(List<Integer> schedules, long olderThan, long amountOfData)
schedules - The schedules that do not yet have baselinesolderThan - Use 1 hr data prior to this timeamountOfData - The amount of data to use for calculating baselines. This value
is treated as a duration. For example, a value of 259200000
would be treated as 3 days.void saveNewBaselines(List<org.rhq.core.domain.measurement.MeasurementBaseline> baselines)
baselines - The baselines to persist.org.rhq.core.domain.measurement.MeasurementBaseline getBaselineIfEqual(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId)
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
subject - measurementScheduleId - measurement id to recalc.startDate - begin date rangeendDate - end date rangesave - whether or not to save the recalculated baselineBaselineCreationExceptionMeasurementNotFoundExceptionorg.rhq.core.domain.measurement.MeasurementBaseline calculateAutoBaselineInNewTransaction(org.rhq.core.domain.auth.Subject subject,
Integer measurementScheduleId,
long startDate,
long endDate,
boolean save)
throws BaselineCreationException,
MeasurementNotFoundException
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
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
void enableAutoBaselineCalculation(org.rhq.core.domain.auth.Subject subject,
Integer[] resourceIds,
Integer[] definitionIds)
user-entered property in baselines so that we can
do autobaselines on it again.subject - resourceIds - definitionIds - measurement definition IDsList<org.rhq.core.domain.measurement.MeasurementBaseline> findBaselinesForResource(org.rhq.core.domain.auth.Subject subject, int resourceId)
MeasurementBaseline objects for the Resource represented by the given id.subject - 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.