コード例 #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();
 }