zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wangpei (Peter)" <peter.wang...@huawei.com>
Subject Re: when the zookeeper Expired ,may I have to rebuild the watch on a znode?
Date Mon, 04 Jun 2012 10:44:27 GMT
curator is a good high level client lib, it may help you much.
my implement is a home-made lib, I do not found curator that time :(

with a connection wrapper like curator client, the watcher decorator is quite simple.
Inner connection watcher will trigger when old session expired and new session open again.
this connection watcher set the watcher, checks Stat and trigger the watcher if needed.


-----邮件原件-----
发件人: iamct [mailto:qddxct@gmail.com] 
发送时间: 2012年6月4日 14:36
收件人: zookeeper-user@hadoop.apache.org
主题: Re: when the zookeeper Expired ,may I have to rebuild the watch on a znode?

Thank you very much。
Can you give a example?

--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/when-the-zookeeper-Expired-may-I-have-to-rebuild-the-watch-on-a-znode-tp7577513p7577515.html
Sent from the zookeeper-user mailing list archive at Nabble.com.
Mime
View raw message