private JMXConnector getMBeanServerConnection ( String controllerHost , int controllerPort , HashMap < String , Object > environment ) throws MalformedURLException , IOException { JMXServiceURL serviceURL = new JMXServiceURL ( "REST" , controllerHost , controllerPort , "/IBMJMXConnectorREST" ) ; return new ClientProvider ( ) . newJMXConnector ( serviceURL , environment ) ; }
Get the MBeanServerConnection for the target controller host and port .