5 #ifndef ZOOKEEPER_ZOOKEEPER_CLIENT_IMPL_H_
6 #define ZOOKEEPER_ZOOKEEPER_CLIENT_IMPL_H_
8 #include <zookeeper/zookeeper.h>
29 bool CreateNode(
const char *path,
const char *value,
int flag);
31 int CreateNodeSync(
const char *path,
const char *value,
int *err,
int flag);
32 int GetNodeDataSync(
const char *path,
char *buf,
int *buf_len,
int *err);
37 std::string
Name()
const;
47 std::unique_ptr<zookeeper::interface::ZookeeperInterface>
zki_;
54 #endif // ZOOKEEPER_ZOOKEEPER_CLIENT_IMPL_H_
int CreateNodeSync(const char *path, const char *value, int *err, int flag)
bool DeleteNode(const char *path)
std::unique_ptr< zookeeper::interface::ZookeeperInterface > zki_
bool CreateNode(const char *path, const char *value, int flag)
void SetClient(void *client)
bool CheckNodeExist(const char *path)
int DeleteNodeSync(const char *path, int *err)
int GetNodeDataSync(const char *path, char *buf, int *buf_len, int *err)
static const int kSessionTimeoutMSec_
ZookeeperClientImpl(const char *hostname, const char *servers, zookeeper::interface::ZookeeperInterface *zki)
virtual ~ZookeeperClientImpl()