org.springframework.jmx.access
Class ConnectorDelegate

java.lang.Object
  extended by org.springframework.jmx.access.ConnectorDelegate

 class ConnectorDelegate
extends java.lang.Object

Internal helper class for managing a JMX connector.

Since:
2.5.2
Author:
Juergen Hoeller

Field Summary
private  javax.management.remote.JMXConnector connector
           
private static Log logger
           
 
Constructor Summary
ConnectorDelegate()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Log logger

connector

private javax.management.remote.JMXConnector connector
Constructor Detail

ConnectorDelegate

ConnectorDelegate()
Method Detail

connect

public javax.management.MBeanServerConnection connect(javax.management.remote.JMXServiceURL serviceUrl,
                                                      java.util.Map<java.lang.String,?> environment,
                                                      java.lang.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 - 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)
Throws:
MBeanServerNotFoundException

close

public void close()
Closes any JMXConnector that may be managed by this interceptor.