Beispiel #1
0
        static void Main3(string[] args)
        {
            var zkhelper = new Nodis.ZooKeeperHelper(log, "192.168.4.77:2181", "codis-zxf");
            var pools    = zkhelper.pools;

            foreach (var itemCodisProxy in pools)
            {
                log.DebugFormat($"加载节点:{itemCodisProxy.Node}={itemCodisProxy.Addr}-{itemCodisProxy.State}");
            }
            Console.ReadKey();
        }
Beispiel #2
0
        static void Main1(string[] args)
        {
            var zkhelper = new Nodis.ZooKeeperHelper(log, "192.168.4.144:20000", "mango");

            Console.ReadKey();
        }