示例#1
0
 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();
     }
   }
 }
示例#2
0
  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;
    }
  }
示例#3
0
 public JMXConnector getJmxConnector() {
   initConnector();
   return m_jmxConnector;
 }