org.jgroups.jmx

Class JmxConfigurator

public class JmxConfigurator extends Object

Version: $Id: JmxConfigurator.java,v 1.5 2005/08/17 07:32:31 belaban Exp $

Author: Bela Ban

Method Summary
protected static ProtocolfindProtocol(Protocol prot)
static JChannelregisterChannel(JChannel channel, MBeanServer server, String name, boolean register_protocols)
Registers an already created channel with the MBeanServer.
static voidregisterProtocols(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 voidunregisterChannel(MBeanServer server, ObjectName name)
static voidunregisterProtocols(MBeanServer server, JChannel channel, String channel_name)

Method Detail

findProtocol

protected static Protocol findProtocol(Protocol prot)

registerChannel

public static JChannel registerChannel(JChannel channel, MBeanServer server, String name, boolean register_protocols)
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)
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)

unregisterProtocols

public static void unregisterProtocols(MBeanServer server, JChannel channel, String channel_name)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.