@Override
                public void childEvent(CuratorFramework c, PathChildrenCacheEvent event)
                        throws Exception {

                    switch (event.getType()) {
                        case CHILD_ADDED:
                        case CHILD_REMOVED:
                        case CHILD_UPDATED:
                            String childPath = event.getData().getPath();
                            String parentPath = childPath.substring(0, childPath.lastIndexOf("/"));
                            List<String> children = client.getChildren().forPath(parentPath);
                            listener.childChanged(parentPath, children);
                        default:
                            break;
                    }
                }
@author Robert HG (254963746@qq.com) on 5/16/15.
lts-core/src/main/java/com/github/ltsopensource/zookeeper/curator/CuratorZkClient.java