OpenSDN source code
|
#include <zookeeper_client.h>
Public Member Functions | |
ZookeeperClient (const char *hostname, const char *servers) | |
virtual | ~ZookeeperClient () |
bool | CreateNode (const char *path, const char *data, int type=Z_NODE_TYPE_PERSISTENT) |
bool | CheckNodeExist (const char *path) |
bool | DeleteNode (const char *path) |
void | Shutdown () |
void | AddListener (ZooStateCallback cb) |
Public Attributes | |
ZooStateCallback | cb |
Private Member Functions | |
ZookeeperClient (impl::ZookeeperClientImpl *impl) | |
Private Attributes | |
std::unique_ptr < impl::ZookeeperClientImpl > | impl_ |
Friends | |
class | ZookeeperLock |
class | ::ZookeeperClientTest |
Definition at line 31 of file zookeeper_client.h.
zookeeper::client::ZookeeperClient::ZookeeperClient | ( | const char * | hostname, |
const char * | servers | ||
) |
Definition at line 292 of file zookeeper_client.cc.
|
virtual |
Definition at line 332 of file zookeeper_client.cc.
|
private |
Definition at line 297 of file zookeeper_client.cc.
void zookeeper::client::ZookeeperClient::AddListener | ( | ZooStateCallback | cb | ) |
Definition at line 325 of file zookeeper_client.cc.
bool zookeeper::client::ZookeeperClient::CheckNodeExist | ( | const char * | path | ) |
Definition at line 313 of file zookeeper_client.cc.
bool zookeeper::client::ZookeeperClient::CreateNode | ( | const char * | path, |
const char * | data, | ||
int | type = Z_NODE_TYPE_PERSISTENT |
||
) |
Definition at line 301 of file zookeeper_client.cc.
bool zookeeper::client::ZookeeperClient::DeleteNode | ( | const char * | path | ) |
Definition at line 317 of file zookeeper_client.cc.
void zookeeper::client::ZookeeperClient::Shutdown | ( | void | ) |
Definition at line 321 of file zookeeper_client.cc.
|
friend |
Definition at line 48 of file zookeeper_client.h.
|
friend |
Definition at line 47 of file zookeeper_client.h.
ZooStateCallback zookeeper::client::ZookeeperClient::cb |
Definition at line 42 of file zookeeper_client.h.
|
private |
Definition at line 50 of file zookeeper_client.h.