class ConnectorDelegate
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private javax.management.remote.JMXConnector |
connector |
private static Log |
logger |
| Constructor and Description |
|---|
ConnectorDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any
JMXConnector that may be managed by this interceptor. |
javax.management.MBeanServerConnection |
connect(javax.management.remote.JMXServiceURL serviceUrl,
java.util.Map<java.lang.String,?> environment,
java.lang.String agentId)
Connects to the remote
MBeanServer using the configured JMXServiceURL:
to the specified JMX service, or to a local MBeanServer if no service URL specified. |
private static final Log logger
private javax.management.remote.JMXConnector connector
public javax.management.MBeanServerConnection connect(javax.management.remote.JMXServiceURL serviceUrl,
java.util.Map<java.lang.String,?> environment,
java.lang.String agentId)
throws MBeanServerNotFoundException
MBeanServer using the configured JMXServiceURL:
to the specified JMX service, or to a local MBeanServer if no service URL specified.serviceUrl - the JMX service URL to connect to (may be null)environment - the JMX environment for the connector (may be null)agentId - the local JMX MBeanServer's agent id (may be null)MBeanServerNotFoundExceptionpublic void close()
JMXConnector that may be managed by this interceptor.