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
Constructors -
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.intThe persist period for this metric.The persist policy for this metric.getUnit()The expected unit of measurement values.voidsetCategory(@Nullable String category) The category of this metric (ex.voidsetDisplayName(@Nullable 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(@Nullable String persistPolicy) The persist policy for this metric.voidThe expected unit of measurement values.Methods inherited from class AbstractJmxAttribute
getCurrencyTimeLimit, getDescription, setCurrencyTimeLimit, setDescription
-
Constructor Details
-
ManagedMetric
public ManagedMetric()
-
-
Method Details
-
setCategory
-
getCategory
-
setDisplayName
-
getDisplayName
-
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
-
getPersistPolicy
-
setUnit
-
getUnit
-