|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.cluster.daemon.mbean.JMXRemoteHelper
public final class JMXRemoteHelper
This helper class allow to start a JMX remote connector allowing to connect remote applications. This could be for example a JSR88 provider.
Method Summary | |
---|---|
static MBeanServerConnection |
connect(String url)
Connect to a JMX Remote connector by calling connect(String, String, String) (url, null, null). |
static MBeanServerConnection |
connect(String url,
String username,
String password)
Connect to a JMX Remote connector. |
static ObjectInstance |
getInstance(MBeanServerConnection cnx,
String pattern)
Get ObjectInstance |
static void |
startConnector(String url,
String connectorName)
Calls startConnector(String, String, Map) (url, connectorName, null). |
static JMXConnectorServer |
startConnector(String url,
String connectorName,
Map<String,String> env)
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 |
---|
public static MBeanServerConnection connect(String url) throws JMXRemoteException
connect(String, String, String)
(url, null, null).
url
- JMX remote url.
JMXRemoteException
- if jmx connector can't be connected.public static MBeanServerConnection connect(String url, String username, String password) throws JMXRemoteException
url
- JMX remote url.username
- User name to use, can be null.password
- Password to use, can be null.
JMXRemoteException
- if jmx connector can't be connected.public static void startConnector(String url, String connectorName) throws JMXRemoteException
startConnector(String, String, Map)
(url, connectorName, null).
url
- JMX remote urlconnectorName
- connector name
JMXRemoteException
- if the connector can't be started.public static JMXConnectorServer startConnector(String url, String connectorName, Map<String,String> env) throws JMXRemoteException
url
- JMX remote urlconnectorName
- connector nameenv
- Environment to use as base when creating the connector,
used to provide security. Can be null.
JMXRemoteException
- if the connector can't be started.public static ObjectInstance getInstance(MBeanServerConnection cnx, String pattern)
cnx
- MBean server connectionpattern
- MBean name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |