Class ManagedMetric
java.lang.Object
org.springframework.jmx.export.metadata.AbstractJmxAttribute
org.springframework.jmx.export.metadata.ManagedMetric
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe category of this metric (ex.A display name for this metric.A description of how this metric's values change over time.int
The persist period for this metric.The persist policy for this metric.getUnit()
The expected unit of measurement values.void
setCategory
(String category) The category of this metric (ex.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
The expected unit of measurement values.Methods inherited from class org.springframework.jmx.export.metadata.AbstractJmxAttribute
getCurrencyTimeLimit, getDescription, setCurrencyTimeLimit, setDescription
-
Constructor Details
-
ManagedMetric
public ManagedMetric()
-
-
Method Details
-
setCategory
The category of this metric (ex. throughput, performance, utilization). -
getCategory
The category of this metric (ex. throughput, performance, utilization). -
setDisplayName
A display name for this metric. -
getDisplayName
A display name for this metric. -
setMetricType
A description of how this metric's values change over time. -
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
The persist policy for this metric. -
getPersistPolicy
The persist policy for this metric. -
setUnit
The expected unit of measurement values. -
getUnit
The expected unit of measurement values.
-