Class Monitoring


  • public class Monitoring
    extends Object
    Enables monitoring JGit via JMX
    Since:
    5.1.13
    • Constructor Detail

      • Monitoring

        public Monitoring()
    • Method Detail

      • registerMBean

        @Nullable
        public static ObjectInstance registerMBean​(Object mbean,
                                                   String metricName)
        Register a MBean with the platform MBean server
        Parameters:
        mbean - the mbean object to register
        metricName - name of the JGit metric, will be prefixed with "org.eclipse.jgit/"
        Returns:
        the registered mbean's object instance