rjenkins / conservator Goto Github PK
View Code? Open in Web Editor NEWC++ Zookeeper client library inspired by Apache Curator
Home Page: https://github.com/rjenkins/conservator
License: Apache License 2.0
C++ Zookeeper client library inspired by Apache Curator
Home Page: https://github.com/rjenkins/conservator
License: Apache License 2.0
Given conservator returns the ZK lib error code values from multiple functions, it would be valuable to have an int code->string msg lookup service. This could be just a wrapper around zerror() in the underlying ZK lib.
For now consumers can just call zerror(), but it is an abstraction leak.
for PR #4
As it stands now it is difficult to have a ConservatorFramework
reference as a private class member as there is no empty constructor. The current model of constructing with the ConservatorFrameworkFactory
doesn't leave the option of a delayed initialization of the framework.
One suggestion would be to have ConservatorFrameworkFactory.newClient()
allocate the framework and return a unique_ptr<ConservatorFramework>
meaning the initial class member can be initialized to a nullptr
.
1 In ConservatorFramework.cpp, the watcher function has some minor problem with lock---wait---notify. There is a chance the wait operation may never be wake up.
2 There is lack of code to handle session timeout which may result in invalid zhandler.
watcherFn is null calling zoo_exists on /services
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.