private void connectClient() throws IOException, TimeoutException {
        if (jmxUrl == null || ("localhost".equals(jmxUrl.getHost()) && jmxUrl.getPort() == 0)) {
            mbeanServerConnection = ManagementFactory.getPlatformMBeanServer();
        } else {
            jmxConnector = connectWithTimeout(jmxUrl, timeout);
            mbeanServerConnection = jmxConnector.getMBeanServerConnection();
        }
        this.connected = true;
    }
get the monitor object of the object name and attribute name. See
{@link org.ngrinder.monitor.domain.MonitorCollectionInfoDomain}.

@param objName  is the object name of the object in JMX MBean server.
@param attrName is the attribute name
@return the monitor object from MBean
@throws Exception wraps all JMX related exception
ngrinder-core/src/main/java/org/ngrinder/monitor/share/domain/MBeanClient.java