Class JmxAttributeGauge

    • Constructor Detail

      • JmxAttributeGauge

        public JmxAttributeGauge​(ObjectName objectName,
                                 String attributeName)
        Creates a new JmxAttributeGauge.
        Parameters:
        objectName - the name of the object
        attributeName - the name of the object's attribute
      • JmxAttributeGauge

        public JmxAttributeGauge​(MBeanServerConnection mBeanServerConn,
                                 ObjectName objectName,
                                 String attributeName)
        Creates a new JmxAttributeGauge.
        Parameters:
        mBeanServerConn - the MBeanServerConnection
        objectName - the name of the object
        attributeName - the name of the object's attribute
    • Method Detail

      • getValue

        public Object getValue()
        Description copied from interface: Gauge
        Returns the metric's current value.
        Specified by:
        getValue in interface Gauge<Object>
        Returns:
        the metric's current value