Class Metrics

    • Field Detail

      • registered

        private volatile boolean registered
    • Method Detail

      • register

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

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

        public ObjectName metricName​(String connectorType,
                                     String connectorName,
                                     String contextName)
        Create a JMX metric name for the given metric.
        Parameters:
        contextName - the name of the context
        Returns:
        the JMX metric name
        Throws:
        MalformedObjectNameException - if the name is invalid