public static CountDownLatch getReadySignal(String zkString, final String parentPath, final int counts) {
ZkClient zkClient = new ZkClient(zkString);
if (zkClient.exists(parentPath)) {
System.out.println(parentPath + " path exists and will be deleted");
zkClient.deleteRecursive(parentPath);
}
zkClient.createPersistent(parentPath);
final CountDownLatch signalReady = new CountDownLatch(1);
zkClient.subscribeChildChanges(parentPath, new IZkChildListener() {