arun-gupta / microservices

Java EE and Microservices
629 stars 381 forks source link

Setup ZooKeeper watches to check the status of the service #27

Open arun-gupta opened 9 years ago

arun-gupta commented 9 years ago

Here is the pseudo code:

        uris = curatorFramework.getChildren().usingWatcher(new Watcher() {
            @Override
            public void process(WatchedEvent we) {
                if (we.getType() == Event.EventType.NodeDeleted) {}
            }
        }).forPath(znode);