org.objectweb.jonas.cluster.daemon.jmx
Class JMXRemoteHelper

java.lang.Object
  extended by org.objectweb.jonas.cluster.daemon.jmx.JMXRemoteHelper

public final class JMXRemoteHelper
extends Object

This helper class allow to start a JMX remote connector allowing to connect remote applications. This could be for example a JSR88 provider.

Author:
Florent Benoit

Method Summary
static MBeanServerConnection connect(String url)
          Connect to a JMX Remote connector
static ObjectInstance getInstance(MBeanServerConnection cnx, String pattern)
          Get ObjectInstance
static void startConnector(String url, String connectorName)
          Start a JMX connector (used to do remote administration).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

connect

public static MBeanServerConnection connect(String url)
                                     throws JMXRemoteException
Connect to a JMX Remote connector

Parameters:
url - JMX remote url.
Returns:
MBeanServerConnection MBean server connection
Throws:
JMXRemoteException - if jmx connector can't be connected.

startConnector

public static void startConnector(String url,
                                  String connectorName)
                           throws JMXRemoteException
Start a JMX connector (used to do remote administration).

Parameters:
url - JMX remote url
connectorName - connector name
Throws:
JMXRemoteException - if the connector can't be started.

getInstance

public static ObjectInstance getInstance(MBeanServerConnection cnx,
                                         String pattern)
Get ObjectInstance

Parameters:
cnx - MBean server connection
pattern - MBean name
Returns:
ObjectInstance


Copyright © 2007 OW2 Consortium. All Rights Reserved.