类 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.- 从以下版本开始:
- 3.0
- 作者:
- Jennifer Hickey
- 另请参阅:
MetadataMBeanInfoAssembler
构造器概要
构造器 构造器 说明 ManagedMetric()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getCategory()
The category of this metric (ex. throughput, performance, utilization).String
getDisplayName()
A display name for this metric.MetricType
getMetricType()
A description of how this metric's values change over time.int
getPersistPeriod()
The persist period for this metric.String
getPersistPolicy()
The persist policy for this metric.String
getUnit()
The expected unit of measurement values.void
setCategory(String category)
The category of this metric (ex. throughput, performance, utilization).void
setDisplayName(String displayName)
A display name for this metric.void
setMetricType(MetricType metricType)
A description of how this metric's values change over time.void
setPersistPeriod(int persistPeriod)
The persist period for this metric.void
setPersistPolicy(String persistPolicy)
The persist policy for this metric.void
setUnit(String unit)
The expected unit of measurement values.从类继承的方法 org.springframework.jmx.export.metadata.AbstractJmxAttribute
getCurrencyTimeLimit, getDescription, setCurrencyTimeLimit, setDescription
构造器详细资料
ManagedMetric
public ManagedMetric()
方法详细资料
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.