예제 #1
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;
    }
  }
예제 #2
0
 JMXServiceURL getJMXServiceURL() {
   return m_jmxConnector.getServiceURL();
 }