Package com.mongodb.management
Class MBeanServerFactory
- java.lang.Object
-
- com.mongodb.management.MBeanServerFactory
-
@Deprecated public final class MBeanServerFactory extends java.lang.Object
Deprecated.This class is NOT part of the public API. It may change at any time without notification.
This class is used to insulate the rest of the driver from the possibility that JMX is not available, as currently is the case on Android VM.
- Since:
- 2.9
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MBeanServer
getMBeanServer()
Deprecated.Gets the MBeanServer for registering or unregistering MBeans.
-
-
-
Method Detail
-
getMBeanServer
public static MBeanServer getMBeanServer()
Deprecated.Gets the MBeanServer for registering or unregistering MBeans. This returns a no-op server if JMX is not available (for example, in Android).- Returns:
- the MBean server.
-
-