private static ZKConnection EstablishConnection()
        {
            ZKConnection zkConnection = new ZKConnection(string.Format("{0}:{1}", TestUtil.ip, TestUtil.port));

            new ZKClient(zkConnection);// connect
            return(zkConnection);
        }
Example #2
0
        private static ZKConnection EstablishConnection()
        {
            ZKConnection zkConnection = new ZKConnection(TestUtil.zkServers);

            zkConnection.Connect(new TestWatcher());
            return(zkConnection);
        }