Class ControlledMetricJmx

java.lang.Object
com.j256.simplemetrics.metric.ControlledMetricJmx
All Implemented Interfaces:
com.j256.simplejmx.common.JmxSelfNaming

public class ControlledMetricJmx extends Object implements com.j256.simplejmx.common.JmxSelfNaming
Wrapper around a ControlledMetric that provides JMX publishing of the metric. This is used by the MetricsManagerJmx if the optional SimpleJmx library is available.
Author:
graywatson
  • Constructor Details

    • ControlledMetricJmx

      public ControlledMetricJmx(ControlledMetric<?,?> metric, String jmxDomainName, com.j256.simplejmx.common.JmxFolderName[] managerFolderNames)
  • Method Details

    • getValue

      public Number getValue()
    • getAggregationTypeName

      public String getAggregationTypeName()
    • getComponent

      public String getComponent()
    • getModule

      public String getModule()
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getUnit

      public String getUnit()
    • getJmxBeanName

      public String getJmxBeanName()
      Specified by:
      getJmxBeanName in interface com.j256.simplejmx.common.JmxSelfNaming
    • getJmxDomainName

      public String getJmxDomainName()
      Specified by:
      getJmxDomainName in interface com.j256.simplejmx.common.JmxSelfNaming
    • getJmxFolderNames

      public com.j256.simplejmx.common.JmxFolderName[] getJmxFolderNames()
      Specified by:
      getJmxFolderNames in interface com.j256.simplejmx.common.JmxSelfNaming