com.yammer.metrics.util.JmxGauge Maven / Gradle / Ivy
package com.yammer.metrics.util;
import com.yammer.metrics.core.Gauge;
import javax.management.MBeanServer;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import java.lang.management.ManagementFactory;
/**
* A gauge which exposes an attribute of a JMX MBean.
*/
public class JmxGauge extends Gauge