public static JmxManagerLocatorResponse send(String locatorHost,int locatorPort,int msTimeout,Map<String,String> sslConfigProps) throws IOException {
  Properties distributionConfigProps=new Properties();
  InetAddress networkAddress=InetAddress.getByName(locatorHost);
  try {
    if (sslConfigProps != null) {
      distributionConfigProps.putAll(sslConfigProps);
    }
    TcpClient client=new TcpClient(new DistributionConfigImpl(distributionConfigProps));
    Object responseFromServer=client.requestToServer(networkAddress,locatorPort,SINGLETON,msTimeout);
    return (JmxManagerLocatorResponse)responseFromServer;
  }
 catch (  ClassNotFoundException unexpected) {
    throw new IllegalStateException(unexpected);
  }
catch (  ClassCastException unexpected) {
    throw new IllegalStateException(unexpected);
  }
 finally {
    distributionConfigProps.clear();
  }
}

public static JmxManagerLocatorResponse send ( String locatorHost , int locatorPort , int msTimeout , Map < String , String > sslConfigProps ) throws IOException { Properties distributionConfigProps = new Properties ( ) ; InetAddress networkAddress = InetAddress . getByName ( locatorHost ) ; try { if ( sslConfigProps != null ) { distributionConfigProps . putAll ( sslConfigProps ) ; } TcpClient client = new TcpClient ( new DistributionConfigImpl ( distributionConfigProps ) ) ; Object responseFromServer = client . requestToServer ( networkAddress , locatorPort , SINGLETON , msTimeout ) ; return ( JmxManagerLocatorResponse ) responseFromServer ; } catch ( ClassNotFoundException unexpected ) { throw new IllegalStateException ( unexpected ) ; } catch ( ClassCastException unexpected ) { throw new IllegalStateException ( unexpected ) ; } finally { distributionConfigProps . clear ( ) ; } }
send a request to the specified locator asking it to find ( and start if needed ) a jmx manager . a jmx manager will only be started
