Top Description Fields Constructors Methods
org.eclipse.jgit.util

public Class Monitoring

extends Object
Class Inheritance
Imports
java.io.IOException, java.lang.management.ManagementFactory, javax.management.InstanceAlreadyExistsException, .InstanceNotFoundException, .MBeanRegistrationException, .MBeanServer, .MalformedObjectNameException, .NotCompliantMBeanException, .ObjectInstance, .ObjectName, org.eclipse.jgit.annotations.Nullable, org.eclipse.jgit.errors.ConfigInvalidException, org.eclipse.jgit.lib.ConfigConstants, org.slf4j.Logger, .LoggerFactory

Enables monitoring JGit via JMX
Since
5.1.13

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static ObjectName
objectName(Class<T> mbean, String metricName)

public static ObjectInstance

Returns:

the registered mbean's object instance
registerMBean
(Object
the mbean object to register
mbean
,
String
name of the JGit metric, will be prefixed with "org.eclipse.jgit/"
metricName
)

Register a MBean with the platform MBean server

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

Monitoringback to summary
public Monitoring()

Method Detail

objectNameback to summary
private static ObjectName objectName(Class<T> mbean, String metricName) throws MalformedObjectNameException
registerMBeanback to summary
public static ObjectInstance registerMBean(Object mbean, String metricName)

Register a MBean with the platform MBean server

Parameters
mbean:Object

the mbean object to register

metricName:String

name of the JGit metric, will be prefixed with "org.eclipse.jgit/"

Returns:ObjectInstance

the registered mbean's object instance

Annotations
@Nullable