public void clear() { initialized = false; initialContext = null; jndiProperties.clear(); perDataSourceICMap.clear(); cachedNameList.clear(); for (int port : cachedPorts) { RMIRegistryController.getInstance().removeLocalRegistry(port); } cachedPorts.clear(); }
public void clear() { initialized = false; initialContext = null; jndiProperties.clear(); perDataSourceICMap.clear(); cachedNameList.clear(); for (int port : cachedPorts) { RMIRegistryController.getInstance().removeLocalRegistry(port); } cachedPorts.clear(); }
/** * Stops the JMX connector server. */ public void stop() { if (connectorServer != null) { log.info("JMXConnectorServer stopping on " + jmxInformation.getJmxUrl()); try { connectorServer.stop(); RMIRegistryController.getInstance().removeLocalRegistry(jmxInformation.getJndiPort()); jmxInformation = null; } catch (IOException ex) { log.error("Error while stopping remote JMX connector", ex); } connectorServer = null; } }
/** * Stops the JMX connector server. */ public void stop() { if (connectorServer != null) { log.info("JMXConnectorServer stopping on " + jmxInformation.getJmxUrl()); try { connectorServer.stop(); RMIRegistryController.getInstance().removeLocalRegistry(jmxInformation.getJndiPort()); jmxInformation = null; } catch (IOException ex) { log.error("Error while stopping remote JMX connector", ex); } connectorServer = null; } }