类 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
    • 方法详细资料

      • 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).
      • setMetricType

        public void setMetricType​(MetricType metricType)
        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.
      • setUnit

        public void setUnit​(String unit)
        The expected unit of measurement values.
      • getUnit

        public String getUnit()
        The expected unit of measurement values.