Class Metrics

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • registered

        private volatile boolean registered
    • Method Detail

      • register

        public void register()
        Registers a metrics MBean into the platform MBean server. The method is intentionally synchronized to prevent preemption between registration and unregistration.
      • unregister

        public void unregister()
        Unregisters a metrics MBean from the platform MBean server. The method is intentionally synchronized to prevent preemption between registration and unregistration.
      • metricName

        protected ObjectName metricName​(String connectorType,
                                        Map<String,​String> tags)
        Create a JMX metric name for the given metric.
        Returns:
        the JMX metric name