|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.jmx.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.
Field Summary | |
---|---|
private static java.lang.String |
DEFAULT_NAME_CONNECTOR
ObjectName for the connector. |
private static java.lang.String |
DEFAULT_RMI
Default RMI host. |
private static javax.management.remote.JMXConnectorServer |
jmxConnectorServer
JMX connector (server side). |
private static JLog |
logger
Logger. |
private static java.lang.String |
PREFIX_URL
Prefix for the URL. |
private static java.lang.String |
SUFFIX_URL
Suffix for the URL. |
Constructor Summary | |
---|---|
private |
JMXRemoteHelper()
Utility class, no public constructor. |
Method Summary | |
---|---|
private static javax.management.ObjectName |
getConnectorObjectName()
|
private static void |
init(RegistryComponent registryComponent)
Build a new JMX Remote connector. |
static void |
startConnector(RegistryComponent registryComponent)
Start a JMX connector (used to do remote administration). |
static void |
stopConnector()
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 |
Field Detail |
---|
private static JLog logger
private static javax.management.remote.JMXConnectorServer jmxConnectorServer
private static final java.lang.String PREFIX_URL
private static final java.lang.String DEFAULT_RMI
private static final java.lang.String SUFFIX_URL
private static final java.lang.String DEFAULT_NAME_CONNECTOR
Constructor Detail |
---|
private JMXRemoteHelper()
Method Detail |
---|
private static void init(RegistryComponent registryComponent) throws JMXRemoteException
registryComponent
- to get the provider URL.
JMXRemoteException
- if jmx connector can't be built.public static void startConnector(RegistryComponent registryComponent) throws JMXRemoteException
registryComponent
- to get the provider URL.
JMXRemoteException
- if the connector can't be started.public static void stopConnector() throws JMXRemoteException
JMXRemoteException
- if the connector can't be started.private static javax.management.ObjectName getConnectorObjectName() throws JMXRemoteException
JMXRemoteException
- if unable to create the ObjectName.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |