Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jgroups.jmx
Class JmxConfigurator  view JmxConfigurator download JmxConfigurator.java

java.lang.Object
  extended byorg.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 $

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
JmxConfigurator()
           
 
Method Summary
protected static Protocol findProtocol(org.jgroups.stack.Protocol prot)
           
static JChannel registerChannel(org.jgroups.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, org.jgroups.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, org.jgroups.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
 

Field Detail

log

static final org.apache.commons.logging.Log log
Constructor Detail

JmxConfigurator

public JmxConfigurator()
Method Detail

registerChannel

public static JChannel registerChannel(org.jgroups.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.


unregisterChannel

public static void unregisterChannel(javax.management.MBeanServer server,
                                     javax.management.ObjectName name)
                              throws java.lang.Exception

registerProtocols

public static void registerProtocols(javax.management.MBeanServer server,
                                     org.jgroups.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


unregisterProtocols

public static void unregisterProtocols(javax.management.MBeanServer server,
                                       org.jgroups.JChannel channel,
                                       java.lang.String channel_name)

findProtocol

protected static Protocol findProtocol(org.jgroups.stack.Protocol prot)
                                throws java.lang.ClassNotFoundException,
                                       java.lang.IllegalAccessException,
                                       java.lang.InstantiationException