Exemplo n.º 1
0
        public static ZKBarrier Barrier(ZooKeeperWrapper handler, String synchNodePath, String owner, int size)
        {
            ZKBarrier sZK = new ZKBarrier(handler, synchNodePath, owner, size);

            sZK.Enter();
            return(sZK);
        }
        public ZKBarrier barrier()
        {
            int       machines = zk.GetChildren(MachinesPath, false).Count();
            ZKBarrier barrier  = ZKBarrier.Barrier(zk, BarrierPath, MachineName, machines); // Create and block barrier

            return(barrier);
        }