Class ManagedMetric
- java.lang.Object
- org.springframework.jmx.export.metadata.AbstractJmxAttribute
- org.springframework.jmx.export.metadata.ManagedMetric
public class ManagedMetric extends AbstractJmxAttribute
Metadata that indicates to expose a given bean property as a JMX attribute, with additional descriptor properties that indicate that the attribute is a metric. Only valid when used on a JavaBean getter.- Since:
- 3.0
- Author:
- Jennifer Hickey
- See Also:
MetadataMBeanInfoAssembler
Constructor Summary
Constructors Constructor Description ManagedMetric()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()The category of this metric (ex.StringgetDisplayName()A display name for this metric.MetricTypegetMetricType()A description of how this metric's values change over time.intgetPersistPeriod()The persist period for this metric.StringgetPersistPolicy()The persist policy for this metric.StringgetUnit()The expected unit of measurement values.voidsetCategory(String category)The category of this metric (ex.voidsetDisplayName(String displayName)A display name for this metric.voidsetMetricType(MetricType metricType)A description of how this metric's values change over time.voidsetPersistPeriod(int persistPeriod)The persist period for this metric.voidsetPersistPolicy(String persistPolicy)The persist policy for this metric.voidsetUnit(String unit)The expected unit of measurement values.Methods inherited from class org.springframework.jmx.export.metadata.AbstractJmxAttribute
getCurrencyTimeLimit, getDescription, setCurrencyTimeLimit, setDescription
Constructor Detail
ManagedMetric
public ManagedMetric()
Method Detail
setCategory
public void setCategory(String category)
The category of this metric (ex. throughput, performance, utilization).
getCategory
public String getCategory()
The category of this metric (ex. throughput, performance, utilization).
setDisplayName
public void setDisplayName(String displayName)
A display name for this metric.
getDisplayName
public String getDisplayName()
A display name for this metric.
setMetricType
public void setMetricType(MetricType metricType)
A description of how this metric's values change over time.
getMetricType
public MetricType getMetricType()
A description of how this metric's values change over time.
setPersistPeriod
public void setPersistPeriod(int persistPeriod)
The persist period for this metric.
getPersistPeriod
public int getPersistPeriod()
The persist period for this metric.
setPersistPolicy
public void setPersistPolicy(String persistPolicy)
The persist policy for this metric.
getPersistPolicy
public String getPersistPolicy()
The persist policy for this metric.