Package org.apache.catalina.tribes.jmx
Class JmxRegistry
- java.lang.Object
-
- org.apache.catalina.tribes.jmx.JmxRegistry
-
public class JmxRegistry extends java.lang.ObjectJMX registry for managing MBean registration for a channel.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringManagersmString manager for this class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JmxRegistrygetRegistry(Channel channel)Get the JMX registry for the given channel.javax.management.ObjectNameregisterJmx(java.lang.String keyprop, java.lang.Object bean)Register an MBean with the JMX server.static voidremoveRegistry(Channel channel, boolean clear)Remove the JMX registry for the given channel.voidunregisterJmx(javax.management.ObjectName oname)Unregister an MBean from the JMX server.
-
-
-
Field Detail
-
sm
protected static final StringManager sm
String manager for this class.
-
-
Method Detail
-
getRegistry
public static JmxRegistry getRegistry(Channel channel)
Get the JMX registry for the given channel.- Parameters:
channel- the channel- Returns:
- the JMX registry, or
nullif JMX is not enabled
-
removeRegistry
public static void removeRegistry(Channel channel, boolean clear)
Remove the JMX registry for the given channel.- Parameters:
channel- the channelclear- whether to clear the MBeans
-
registerJmx
public javax.management.ObjectName registerJmx(java.lang.String keyprop, java.lang.Object bean)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
public void unregisterJmx(javax.management.ObjectName oname)
Unregister an MBean from the JMX server.- Parameters:
oname- the object name to unregister
-
-