2015年3月2日
摘要: ZooKeeper原生的API支持通过注册Watcher来进行事件监听,但是Watcher通知是一次性的,因此开发过程中需要反复注册Watcher,比较繁琐。Curator引入了Cache来监听ZooKeeper服务端的事件。Cache对ZooKeeper事件监听进行了封装,能够自动处理反复注册监听... 阅读全文
posted @ 2015-03-02 22:18 huey2672 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: BaseException +-- SystemExit +-- KeyboardInterrupt +-- GeneratorExit +-- Exception +-- StopIteration +-- StandardError | +-- BufferE... 阅读全文
posted @ 2015-03-02 17:38 huey2672 阅读(912) 评论(0) 推荐(0) 编辑