org.ow2.petals.jmx
Class JMXConnection

java.lang.Object
  extended by org.ow2.petals.jmx.JMXConnection

public final class JMXConnection
extends java.lang.Object

A Petals JMX Server Connection

Author:
cdeneux - Capgemini Sud, cgirodengo - Capgemini Sud

Constructor Summary
JMXConnection(javax.management.remote.JMXConnector connector)
          Creates a new instance of JMXConnection
JMXConnection(java.lang.String host, int jndiPort, java.lang.String username, java.lang.String password)
          Creates a new instance of JMXConnection
 
Method Summary
 void disconnect()
          Close the JMX connection
 javax.management.MBeanServerConnection getMBeanServerConnection()
          Get the MBeanServerConnection of the JMX connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXConnection

public JMXConnection(javax.management.remote.JMXConnector connector)
              throws ConnectionErrorException
Creates a new instance of JMXConnection

Parameters:
connector -
Throws:
ConnectionErrorException

JMXConnection

public JMXConnection(java.lang.String host,
                     int jndiPort,
                     java.lang.String username,
                     java.lang.String password)
              throws ConnectionErrorException
Creates a new instance of JMXConnection

Parameters:
host -
jndiPort - the JNDI port used for to get the JMX RMI stub.
If null, dynamic mode is used (may not work with proxies).
username -
password -
Throws:
ConnectionErrorException
Method Detail

getMBeanServerConnection

public javax.management.MBeanServerConnection getMBeanServerConnection()
                                                                throws ConnectionErrorException
Get the MBeanServerConnection of the JMX connection.

Throws:
ConnectionErrorException

disconnect

public void disconnect()
                throws ConnectionErrorException
Close the JMX connection

Throws:
ConnectionErrorException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.