Package com.mongodb.management
Class MBeanServerFactory
java.lang.Object
com.mongodb.management.MBeanServerFactory
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
Modifier and TypeMethodDescriptionstatic MBeanServer
Deprecated.Gets the MBeanServer for registering or unregistering MBeans.
-
Method Details
-
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.
-