OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
zookeeper::client::ZookeeperClient Class Reference

#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
 

Detailed Description

Definition at line 31 of file zookeeper_client.h.

Constructor & Destructor Documentation

zookeeper::client::ZookeeperClient::ZookeeperClient ( const char *  hostname,
const char *  servers 
)

Definition at line 292 of file zookeeper_client.cc.

zookeeper::client::ZookeeperClient::~ZookeeperClient ( )
virtual

Definition at line 332 of file zookeeper_client.cc.

zookeeper::client::ZookeeperClient::ZookeeperClient ( impl::ZookeeperClientImpl impl)
private

Definition at line 297 of file zookeeper_client.cc.

Member Function Documentation

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.

Friends And Related Function Documentation

friend class ::ZookeeperClientTest
friend

Definition at line 48 of file zookeeper_client.h.

friend class ZookeeperLock
friend

Definition at line 47 of file zookeeper_client.h.

Member Data Documentation

ZooStateCallback zookeeper::client::ZookeeperClient::cb

Definition at line 42 of file zookeeper_client.h.

std::unique_ptr<impl::ZookeeperClientImpl> zookeeper::client::ZookeeperClient::impl_
private

Definition at line 50 of file zookeeper_client.h.


The documentation for this class was generated from the following files: