org.jgroups.jmx
Class JmxConfigurator
java.lang.Object
org.jgroups.jmx.JmxConfigurator
public class JmxConfigurator
extends java.lang.Object
$Id: JmxConfigurator.java,v 1.5 2005/08/17 07:32:31 belaban Exp $
findProtocol
protected static Protocol findProtocol(Protocol prot)
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
registerChannel
public static JChannel registerChannel(JChannel channel,
MBeanServer server,
String name,
boolean register_protocols)
throws Exception
Registers an already created channel with the MBeanServer. Creates an org.jgroups.jmx.JChannel which
delegates to the org.jgroups.JChannel and registers it. Optionally, this method will also try to
create one MBean proxy for each protocol in the channel's protocol stack, and register it as well.
channel
- server
- name
- Has to be a JMX ObjectName, e.g. DefaultDomain:type=MyChannelregister_protocols
-
- org.jgroups.jmx.JChannel for the specified org.jgroups.JChannel
registerProtocols
public static void registerProtocols(MBeanServer server,
JChannel channel,
String channel_name)
throws Exception
Takes all protocols of an existing stack, creates corresponding MBean proxies and registers them with
the MBean server
unregisterChannel
public static void unregisterChannel(MBeanServer server,
ObjectName name)
throws Exception
unregisterProtocols
public static void unregisterProtocols(MBeanServer server,
JChannel channel,
String channel_name)
Copyright B) 1998-2005 Bela Ban. All Rights Reserved.