Methods Summary |
---|
public javax.management.remote.JMXConnector | connect(java.util.Map m)
final String user = (String) m.get(DefaultConfiguration.ADMIN_USER_ENV_PROPERTY_NAME);
final String password = (String) m.get(DefaultConfiguration.ADMIN_PASSWORD_ENV_PROPERTY_NAME);
final JMXServiceURL url = env2JmxServiceUrl(m);
System.out.println("User = " + user);
System.out.println("Password = " + password);
return ( SunOneHttpJmxConnectorFactory.connect(url, user, password) );
|
private javax.management.remote.JMXServiceURL | env2JmxServiceUrl(java.util.Map m)
final String protocol = (String) m.get(JMXConnectorProvider.PROTOCOL);
final String host = (String) m.get(JMXConnectorProvider.HOST);
final int port = Integer.parseInt((String)m.get(JMXConnectorProvider.PORT));
return ( new JMXServiceURL(protocol, host, port) );
|
public static JMXConnectorProviderInfo | getInfo()
return( new Info() );
|
public boolean | isSupported(java.util.Map m)
final boolean hostPresent = m.get(JMXConnectorProvider.HOST) != null;
final boolean portPresent = m.get(JMXConnectorProvider.PORT) != null;
final String protocol = (String)m.get(JMXConnectorProvider.PROTOCOL);
final boolean protocolPresent = protocol != null;
final boolean userPresent = m.get(DefaultConfiguration.ADMIN_USER_ENV_PROPERTY_NAME) != null;
final boolean passwordPresent = m.get(DefaultConfiguration.ADMIN_PASSWORD_ENV_PROPERTY_NAME) != null;
return ( hostPresent && portPresent && protocolPresent && protocol.equals( MY_PROTOCOL ) &&
userPresent && passwordPresent );
|