Top Description Fields Constructors Methods
org.springframework.jmx.access

pack-priv Class ConnectorDelegate

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.Map, javax.management.MBeanServerConnection, javax.management.remote.JMXConnector, .JMXConnectorFactory, .JMXServiceURL, org.apache.commons.logging.Log, .LogFactory, org.springframework.jmx.MBeanServerNotFoundException, org.springframework.jmx.support.JmxUtils, org.springframework.lang.Nullable

Internal helper class for managing a JMX connector.
Author
Juergen Hoeller
Since
2.5.2

Field Summary

Modifier and TypeField and Description
private JMXConnector
private static final Log

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Closes any JMXConnector that may be managed by this interceptor.

public MBeanServerConnection
connect(JMXServiceURL
the JMX service URL to connect to (may be null)
serviceUrl
,
Map<String, ?>
the JMX environment for the connector (may be null)
environment
,
String
the local JMX MBeanServer's agent id (may be null)
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectorback to summary
private JMXConnector connector
Annotations
@Nullable
loggerback to summary
private static final Log logger

Constructor Detail

ConnectorDelegateback to summary
pack-priv ConnectorDelegate()

Method Detail

closeback to summary
public void close()

Closes any JMXConnector that may be managed by this interceptor.

connectback to summary
public MBeanServerConnection connect(JMXServiceURL serviceUrl, Map<String, ?> environment, String agentId) throws MBeanServerNotFoundException

Connects to the remote MBeanServer using the configured JMXServiceURL: to the specified JMX service, or to a local MBeanServer if no service URL specified.

Parameters
serviceUrl:JMXServiceURL

the JMX service URL to connect to (may be null)

environment:Map<String, ?>

the JMX environment for the connector (may be null)

agentId:String

the local JMX MBeanServer's agent id (may be null)