FileDocCategorySizeDatePackage
JMXConnectorConnectionSource.javaAPI DocGlassfish v2 API3561Fri May 04 22:31:04 BST 2007com.sun.appserv.management.util.jmx

JMXConnectorConnectionSource

public final class JMXConnectorConnectionSource extends Object implements com.sun.appserv.management.client.ConnectionSource
A ConnectionSource for in-process access where the MBeanServer is actually known and where later access to it may be desired.

Fields Summary
protected JMXConnector
mJMXConnector
Constructors Summary
public JMXConnectorConnectionSource(JMXConnector connector)

		if ( connector == null )
		{
			throw new IllegalArgumentException();
		}
		
		mJMXConnector	= connector;
		
		// make sure it's good, now
		getMBeanServerConnection( false );
	
Methods Summary
public javax.management.MBeanServerConnectiongetExistingMBeanServerConnection()

		try
		{
			return( mJMXConnector.getMBeanServerConnection() );
		}
		catch( IOException e )
		{
		}
		return( null );
	
public javax.management.remote.JMXConnectorgetJMXConnector(boolean forceNew)

return
the existing JMXConnector

		// all we have is what is already present; no way to create a new one
		return( mJMXConnector );
	
public javax.management.MBeanServerConnectiongetMBeanServerConnection(boolean forceNew)

		return( mJMXConnector.getMBeanServerConnection() );