public JMXConnector getJMXConnector ( String controllerHost , int controllerPort , String user , String password ) throws NoSuchAlgorithmException , KeyManagementException , MalformedURLException , IOException { HashMap < String , Object > environment = createJMXEnvironment ( user , password , setUpSSLContext ( ) ) ; JMXConnector connector = getMBeanServerConnection ( controllerHost , controllerPort , environment ) ; connector . connect ( ) ; return connector ; }
Returns a connected JMXConnector .