question: void connect ( ) throws Exception { CuratorFramework zkClient = null ; long connectioncreatime = 0 ; LOGGER . warn ( "Connection to ZooKeeper Server - ZooKeeper Server Connection Params: cnxnstr = " + m_connectionStr + " , connectiontimeout=" + m_cxnWaitInMillis + ", retryCount=" + m_retrycount + ", retryWaitTime=" + m_retrywaitTimeInMillis ) ; long start = System . currentTimeMillis ( ) ; zkClient = connectInternal ( m_sessionTimeoutInMillis , m_cxnWaitInMillis , m_retrycount , m_retrywaitTimeInMillis ) ; long end = System . currentTimeMillis ( ) ; connectioncreatime = end - start ; if ( zkClient != null && ( ! isZKConnected ( zkClient ) ) ) { zkClient . close ( ) ; throw new Exception ( "Not able to connect to ZooKeeper Server" ) ; } else { setZKHandle ( zkClient ) ; LOGGER . warn ( "Session Connected to ZooKeeper Server : " + m_connectionStr ) ; LOGGER . warn ( "ZooKeeper connection creation took - " + connectioncreatime + " ms" ) ; } }
target:  Connects to one of zookeeper servers in ensemble with wait time enabled.