|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.measurement.MeasurementDefinition
public class MeasurementDefinition
Field Summary | |
---|---|
static String |
DISABLE_ALL
|
static String |
FIND_BY_IDS
|
static String |
FIND_BY_RESOURCE_TYPE_DATA_TYPE_DISPLAY_TYPE
|
static String |
FIND_RAW_OR_PER_MINUTE_BY_NAME_AND_RESOURCE_TYPE_NAME
|
static String |
FIND_SCHEDULE_COMPOSITE_FOR_RESOURCE_TYPE
|
static String |
QUERY_NATIVE_UPDATE_DEFAULT_ON_BY_IDS
|
static String |
QUERY_NATIVE_UPDATE_DEFAULTS_BY_IDS
|
static String |
QUERY_NATIVE_UPDATE_SCHEDULES_BY_IDS
|
static String |
QUERY_NATIVE_UPDATE_SCHEDULES_ENABLE_BY_IDS
|
Constructor Summary | |
---|---|
protected |
MeasurementDefinition()
|
|
MeasurementDefinition(MeasurementDefinition def)
|
|
MeasurementDefinition(ResourceType resourceType,
String name)
|
|
MeasurementDefinition(String name,
MeasurementCategory category,
MeasurementUnits units,
DataType dataType,
boolean defaultOn,
long defaultInterval,
DisplayType displayType)
Creates a definition with the given data type. |
|
MeasurementDefinition(String name,
MeasurementCategory category,
MeasurementUnits units,
DataType dataType,
NumericType numericType,
boolean defaultOn,
long defaultInterval,
DisplayType displayType)
|
|
MeasurementDefinition(String name,
MeasurementCategory category,
MeasurementUnits units,
NumericType numericType,
boolean defaultOn,
long defaultInterval,
DisplayType displayType)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_NATIVE_UPDATE_DEFAULT_ON_BY_IDS
public static final String QUERY_NATIVE_UPDATE_DEFAULTS_BY_IDS
public static final String QUERY_NATIVE_UPDATE_SCHEDULES_ENABLE_BY_IDS
public static final String QUERY_NATIVE_UPDATE_SCHEDULES_BY_IDS
public static final String FIND_BY_RESOURCE_TYPE_DATA_TYPE_DISPLAY_TYPE
public static final String FIND_SCHEDULE_COMPOSITE_FOR_RESOURCE_TYPE
public static final String FIND_BY_IDS
public static final String DISABLE_ALL
public static final String FIND_RAW_OR_PER_MINUTE_BY_NAME_AND_RESOURCE_TYPE_NAME
Constructor Detail |
---|
protected MeasurementDefinition()
@Deprecated public MeasurementDefinition(String name, MeasurementCategory category, MeasurementUnits units, NumericType numericType, boolean defaultOn, long defaultInterval, DisplayType displayType)
data type
is DataType.MEASUREMENT
. This does not take a
resourceType because this is a dependent child type entity of ResourceType, and this object's ResourceType is set
when adding it to the parent ResourceType.
name
- The name of this definition. Must be uniquecategory
- What kind of Metric is this (avail., throughput, ..)units
- The MetricUnit of this type of MetricnumericType
- Is this dynamic or trendsup/down datadefaultOn
- Shall Schedules created with this definition be enabled by default?defaultInterval
- The default interval in ms between two Measurementspublic MeasurementDefinition(String name, MeasurementCategory category, MeasurementUnits units, DataType dataType, NumericType numericType, boolean defaultOn, long defaultInterval, DisplayType displayType)
public MeasurementDefinition(String name, MeasurementCategory category, MeasurementUnits units, DataType dataType, boolean defaultOn, long defaultInterval, DisplayType displayType)
DataType.MEASUREMENT
, consider using
the other constructor that takes the NumericType
instead.
name
- The name of this definition. Must be uniquecategory
- What kind of Metric is this (avail., throughput, ..)units
- The MetricUnit of this type of MetricdataType
- what kind of data will this be (measurement? trait?)defaultOn
- Shall Schedules created with this definition be enabled by default?defaultInterval
- The default interval in ms between two MeasurementsMeasurementDefinition(String, MeasurementCategory, MeasurementUnits, NumericType,
boolean, long, DisplayType)
public MeasurementDefinition(MeasurementDefinition def)
public MeasurementDefinition(ResourceType resourceType, @NotNull String name)
Method Detail |
---|
public List<MeasurementSchedule> addSchedule(MeasurementSchedule ms)
ms
- a Metric Schedule
public String toString()
toString
in class Object
public ResourceType getResourceType()
public void setResourceType(ResourceType resourceType)
public MeasurementCategory getCategory()
public void setCategory(MeasurementCategory category)
public NumericType getNumericType()
public void setNumericType(NumericType type)
public void setMeasurementType(NumericType numericType)
public DataType getDataType()
public void setDataType(DataType dataType)
public DisplayType getDisplayType()
public void setDisplayType(DisplayType displayType)
public long getDefaultInterval()
public void setDefaultInterval(long defaultInterval)
public boolean isDefaultOn()
public void setDefaultOn(boolean defaultOn)
@NotNull public String getName()
public void setName(@NotNull String name)
@NotNull public String getDisplayName()
public void setDisplayName(String displayName)
public List<MeasurementSchedule> getSchedules()
public void setSchedules(List<MeasurementSchedule> schedules)
public MeasurementUnits getUnits()
public void setUnits(MeasurementUnits units)
public String getDescription()
public void setDescription(String description)
public int getId()
public void setId(int id)
public boolean isPerMinute()
public NumericType getRawNumericType()
public void setRawNumericType(NumericType rawNumericType)
public void update(MeasurementDefinition newDefinition, boolean alsoUpdateInterval)
newDefinition
- the definition holding the new contentsalsoUpdateInterval
- should the default interval also be updated?public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getDisplayOrder()
public void setDisplayOrder(int i)
i
- the displayOrder to set@Nullable public String getDestinationType()
public void setDestinationType(@Nullable String destinationType)
public List<AlertCondition> getAlertCondition()
public void setAlertCondition(List<AlertCondition> alertConditions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |