org.jgroups.jmx
Class JmxConfigurator
java.lang.Object
org.jgroups.jmx.JmxConfigurator
- public class JmxConfigurator
- extends java.lang.Object
- Version:
- $Id: JmxConfigurator.java,v 1.5 2005/08/17 07:32:31 belaban Exp $
- Author:
- Bela Ban
Method Summary |
protected static Protocol |
findProtocol(Protocol prot)
|
static JChannel |
registerChannel(JChannel channel,
javax.management.MBeanServer server,
java.lang.String name,
boolean register_protocols)
Registers an already created channel with the MBeanServer. |
static void |
registerProtocols(javax.management.MBeanServer server,
JChannel channel,
java.lang.String channel_name)
Takes all protocols of an existing stack, creates corresponding MBean proxies and registers them with
the MBean server |
static void |
unregisterChannel(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
static void |
unregisterProtocols(javax.management.MBeanServer server,
JChannel channel,
java.lang.String channel_name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmxConfigurator
public JmxConfigurator()
registerChannel
public static JChannel registerChannel(JChannel channel,
javax.management.MBeanServer server,
java.lang.String name,
boolean register_protocols)
throws java.lang.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.
- Parameters:
channel
- server
- name
- Has to be a JMX ObjectName, e.g. DefaultDomain:type=MyChannelregister_protocols
-
- Returns:
- org.jgroups.jmx.JChannel for the specified org.jgroups.JChannel
- Throws:
java.lang.Exception
unregisterChannel
public static void unregisterChannel(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws java.lang.Exception
- Throws:
java.lang.Exception
registerProtocols
public static void registerProtocols(javax.management.MBeanServer server,
JChannel channel,
java.lang.String channel_name)
throws java.lang.Exception
- Takes all protocols of an existing stack, creates corresponding MBean proxies and registers them with
the MBean server
- Parameters:
channel
- channel_name
-
- Throws:
java.lang.Exception
unregisterProtocols
public static void unregisterProtocols(javax.management.MBeanServer server,
JChannel channel,
java.lang.String channel_name)
findProtocol
protected static Protocol findProtocol(Protocol prot)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
- Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.