org.rhq.core.domain.measurement
Class MeasurementBaseline

java.lang.Object
  extended by org.rhq.core.domain.measurement.MeasurementBaseline
All Implemented Interfaces:
Serializable

public class MeasurementBaseline
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_ORACLE
           
static String NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_POSTGRES
           
static String NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_SQLSERVER
           
static String QUERY_CALC_FIRST_AUTOBASELINE
           
static String QUERY_DELETE_BY_COMPUTE_TIME
           
static String QUERY_DELETE_BY_RESOURCES
           
static String QUERY_DELETE_EXISTING_AUTOBASELINES
           
static String QUERY_FIND_BY_COMPUTE_TIME
           
static String QUERY_FIND_BY_RESOURCE
           
static String QUERY_FIND_BY_RESOURCE_IDS_AND_DEF_IDS
           
 
Constructor Summary
MeasurementBaseline()
           
 
Method Summary
 Date getComputeTime()
          The time when the baseline was inserted into the database (which is usually when the baseline was calculated).
 int getId()
           
 Double getMax()
          The highest value the measurement ever reached during the baseline time period.
 Double getMean()
          The average measurement value as computed over the baseline time period.
 Double getMin()
          The lowest value the measurement ever reached during the baseline time period.
 MeasurementSchedule getSchedule()
           
 boolean isUserEntered()
          If true, it means a user manually entered the baseline values, as opposed to having them automatically be calculated by examining past measurement data.
 void setId(int id)
           
 void setMax(Double max)
           
 void setMean(Double mean)
           
 void setMin(Double min)
           
 void setSchedule(MeasurementSchedule schedule)
           
 void setUserEntered(boolean userEntered)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_BY_RESOURCE

public static final String QUERY_FIND_BY_RESOURCE
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_IDS_AND_DEF_IDS

public static final String QUERY_FIND_BY_RESOURCE_IDS_AND_DEF_IDS
See Also:
Constant Field Values

QUERY_FIND_BY_COMPUTE_TIME

public static final String QUERY_FIND_BY_COMPUTE_TIME
See Also:
Constant Field Values

QUERY_DELETE_BY_COMPUTE_TIME

public static final String QUERY_DELETE_BY_COMPUTE_TIME
See Also:
Constant Field Values

QUERY_DELETE_BY_RESOURCES

public static final String QUERY_DELETE_BY_RESOURCES
See Also:
Constant Field Values

QUERY_CALC_FIRST_AUTOBASELINE

public static final String QUERY_CALC_FIRST_AUTOBASELINE
See Also:
Constant Field Values

QUERY_DELETE_EXISTING_AUTOBASELINES

public static final String QUERY_DELETE_EXISTING_AUTOBASELINES
See Also:
Constant Field Values

NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_POSTGRES

public static final String NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_POSTGRES

NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_ORACLE

public static final String NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_ORACLE

NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_SQLSERVER

public static final String NATIVE_QUERY_CALC_FIRST_AUTOBASELINE_SQLSERVER
Constructor Detail

MeasurementBaseline

public MeasurementBaseline()
Method Detail

getId

public int getId()

setId

public void setId(int id)

getSchedule

public MeasurementSchedule getSchedule()

setSchedule

public void setSchedule(MeasurementSchedule schedule)

getComputeTime

public Date getComputeTime()
The time when the baseline was inserted into the database (which is usually when the baseline was calculated).

Returns:
the time when the baseline was persisted

getMax

public Double getMax()
The highest value the measurement ever reached during the baseline time period.

Returns:
maximum value of the measurement

setMax

public void setMax(Double max)

getMean

public Double getMean()
The average measurement value as computed over the baseline time period.

Returns:
the average measurement value

setMean

public void setMean(Double mean)

getMin

public Double getMin()
The lowest value the measurement ever reached during the baseline time period.

Returns:
minimum value of the measurement

setMin

public void setMin(Double min)

isUserEntered

public boolean isUserEntered()
If true, it means a user manually entered the baseline values, as opposed to having them automatically be calculated by examining past measurement data.

Returns:
indicates if the user entered the baselines or if the values were automatically calculated

setUserEntered

public void setUserEntered(boolean userEntered)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.