24 #ifndef __MESOS_ZOOKEEPER_HPP__ 25 #define __MESOS_ZOOKEEPER_HPP__ 29 #include <zookeeper.h> 46 class ZooKeeperProcess;
66 const std::string&
path) = 0;
149 int64_t getSessionId();
164 int authenticate(
const std::string& scheme,
const std::string& credentials);
201 const std::string&
path,
202 const std::string& data,
203 const ACL_vector& acl,
206 bool recursive =
false);
227 int remove(
const std::string& path,
int version);
247 int exists(
const std::string& path,
bool watch, Stat*
stat);
268 const std::string& path,
290 const std::string& path,
292 std::vector<std::string>* results);
312 int set(
const std::string& path,
const std::string& data,
int version);
319 std::string message(
int code)
const;
328 bool retryable(
int code);
Definition: zookeeper.hpp:115
virtual ~Watcher()
Definition: zookeeper.hpp:68
ZooKeeperProcess * process
Definition: zookeeper.hpp:333
Definition: duration.hpp:32
This interface specifies the public interface an event handler class must implement.
Definition: zookeeper.hpp:59
process::Future< Version > version()
Definition: version.hpp:32
Try< hashmap< std::string, uint64_t > > stat(const std::string &hierarchy, const std::string &cgroup, const std::string &file)
virtual void process(int type, int state, int64_t sessionId, const std::string &path)=0
Try< uint32_t > type(const std::string &path)
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
bool exists(const std::string &hierarchy, const std::string &cgroup)