org.xsocket.stream
Class MultithreadedServerMBeanProxyFactory

Package class diagram package MultithreadedServerMBeanProxyFactory
java.lang.Object
  extended by org.xsocket.stream.MultithreadedServerMBeanProxyFactory

public final class MultithreadedServerMBeanProxyFactory
extends java.lang.Object

A Mbean proxy factory, which creates and registers an appropriated mbean for a given MultithreadedServer instance.

This class is for test purpose only, and will be modified or discarded in future versions


Constructor Summary
MultithreadedServerMBeanProxyFactory()
           
 
Method Summary
static void createAndRegister(javax.management.MBeanServer mbeanServer, MultithreadedServer server, java.lang.String domain)
          creates and registers a mbean for the given server on the given MBeanServer under the given domain name
static void createAndRegister(MultithreadedServer server)
          creates and registers a mbean for the given server on the platform MBeanServer
static void createAndRegister(MultithreadedServer server, java.lang.String domain)
          creates and registers a mbean for the given server on the platform MBeanServer under the given domain name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultithreadedServerMBeanProxyFactory

public MultithreadedServerMBeanProxyFactory()
Method Detail

createAndRegister

public static void createAndRegister(MultithreadedServer server)
                              throws javax.management.JMException
creates and registers a mbean for the given server on the platform MBeanServer

Parameters:
server - the server to register
Throws:
javax.management.JMException - if an jmx exception occurs

createAndRegister

public static void createAndRegister(MultithreadedServer server,
                                     java.lang.String domain)
                              throws javax.management.JMException
creates and registers a mbean for the given server on the platform MBeanServer under the given domain name

Parameters:
server - the server to register
domain - the domain name to use
Throws:
javax.management.JMException - if an jmx exception occurs

createAndRegister

public static void createAndRegister(javax.management.MBeanServer mbeanServer,
                                     MultithreadedServer server,
                                     java.lang.String domain)
                              throws javax.management.JMException
creates and registers a mbean for the given server on the given MBeanServer under the given domain name

Parameters:
mbeanServer - the mbean server to use
server - the server to register
domain - the domain name to use
Throws:
javax.management.JMException - if an jmx exception occurs