private void startConnect() { try { cancelConnectThread(); initConnector(); m_connectThread = new ConnectThread(); m_connectThread.start(); } catch (Exception e) { m_connectException = e; if (m_connectListener != null) { m_connectListener.handleException(); } } }
public boolean testIsConnected() throws Exception { if (m_connectCntx == null) return false; synchronized (m_connectTestLock) { if (m_connectCntx == null) return false; if (m_connectCntx.jmxc == null) { initConnector(); } m_jmxConnector.connect(getConnectionEnvironment()); m_connectCntx.mbsc = m_jmxConnector.getMBeanServerConnection(); m_connectCntx.jmxc = m_jmxConnector; m_connectException = null; return true; } }
public JMXConnector getJmxConnector() { initConnector(); return m_jmxConnector; }