/** * Try to get a connection to the specified jmx url * @param jmxUrl the jmx url * @param attributes jmx connection attributes * @param wait if true wait the current thread until the end of the connection attempt * @return a jmx connection */ public MBeanServerConnection getConnection(String jmxUrl, Hashtable attributes, boolean wait) { JMXMonConnection connection = (JMXMonConnection)pool.get(jmxUrl); if (connection == null) { connection = new JMXMonConnection(jmxUrl); pool.put(jmxUrl, connection); } return connection.connect(attributes, wait); }
/** * Try to get a connection to the specified jmx url * @param jmxUrl the jmx url * @param attributes jmx connection attributes * @param wait if true wait the current thread until the end of the connection attempt * @return a jmx connection */ public MBeanServerConnection getConnection(String jmxUrl, Hashtable attributes, boolean wait) { JMXMonConnection connection = (JMXMonConnection)pool.get(jmxUrl); if (connection == null) { connection = new JMXMonConnection(jmxUrl); pool.put(jmxUrl, connection); } return connection.connect(attributes, wait); }