org.jgroups.jmx

Class 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, MBeanServer server, String name, boolean register_protocols)
Registers an already created channel with the MBeanServer.
static void
registerProtocols(MBeanServer server, JChannel channel, String channel_name)
Takes all protocols of an existing stack, creates corresponding MBean proxies and registers them with the MBean server
static void
unregisterChannel(MBeanServer server, ObjectName name)
static void
unregisterProtocols(MBeanServer server, JChannel channel, String channel_name)

Method Details

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.
Parameters:
channel -
server -
name - Has to be a JMX ObjectName, e.g. DefaultDomain:type=MyChannel
register_protocols -
Returns:
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
Parameters:
channel -
channel_name -

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.