FileDocCategorySizeDatePackage
JMXMPDefaultConnectorProvider.javaAPI DocGlassfish v2 API3803Fri May 04 22:24:50 BST 2007com.sun.cli.jmx.spi

JMXMPDefaultConnectorProvider

public final class JMXMPDefaultConnectorProvider extends Object implements JMXConnectorProvider

Fields Summary
public static final String
MY_PROTOCOL
Constructors Summary
public JMXMPDefaultConnectorProvider()

	
Methods Summary
public javax.management.remote.JMXConnectorconnect(java.util.Map m)

		final String	host	= (String)m.get( HOST );
		final String	port	= (String)m.get( PORT );
		
		final String	urlString	= "service:jmx:jmxmp://" + host + ":" + port;
		final JMXServiceURL	url	= new JMXServiceURL( urlString );
		
		final JMXConnector	conn	= JMXConnectorFactory.connect( url );
		
		return( conn );
	
public static JMXConnectorProviderInfogetInfo()

		return( new Info() );
	
public booleanisSupported(java.util.Map m)

	
		 
	   
	
		boolean 	supports	= false;
		
		final String	protocol	= (String)m.get( PROTOCOL );
		if ( MY_PROTOCOL.equals( protocol ) )
		{
			supports	= m.get( HOST ) != null && m.get( PORT ) != null;
		}
		return( supports );