Class JmxUtil
java.lang.Object
org.apache.tomcat.jdbc.pool.jmx.JmxUtil
Utility class for JMX registration of JDBC pool components.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectNameregisterJmx(ObjectName base, String keyprop, Object obj) Register an object as an MBean.static voidunregisterJmx(ObjectName oname) Unregister an MBean.
-
Method Details
-
registerJmx
Register an object as an MBean.- Parameters:
base- the base object namekeyprop- the key propertyobj- the object to register- Returns:
- the registered object name, or
nullon failure
-
unregisterJmx
Unregister an MBean.- Parameters:
oname- the object name to unregister
-