Class JmxRegistry
java.lang.Object
org.apache.catalina.tribes.jmx.JmxRegistry
JMX registry for managing MBean registration for a channel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringManagerString manager for this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic JmxRegistrygetRegistry(Channel channel) Get the JMX registry for the given channel.registerJmx(String keyprop, Object bean) Register an MBean with the JMX server.static voidremoveRegistry(Channel channel, boolean clear) Remove the JMX registry for the given channel.voidunregisterJmx(ObjectName oname) Unregister an MBean from the JMX server.
-
Field Details
-
sm
String manager for this class.
-
-
Method Details
-
getRegistry
Get the JMX registry for the given channel.- Parameters:
channel- the channel- Returns:
- the JMX registry, or
nullif JMX is not enabled
-
removeRegistry
Remove the JMX registry for the given channel.- Parameters:
channel- the channelclear- whether to clear the MBeans
-
registerJmx
Register an MBean with the JMX server.- Parameters:
keyprop- the key propertybean- the MBean to register- Returns:
- the registered object name, or
nullon failure
-
unregisterJmx
Unregister an MBean from the JMX server.- Parameters:
oname- the object name to unregister
-