OpenSDN source code
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::ZookeeperClientImplimpl_
 

Friends

class ZookeeperLock
 
class ::ZookeeperClientTest
 

Detailed Description

Definition at line 31 of file zookeeper_client.h.

Constructor & Destructor Documentation

◆ ZookeeperClient() [1/2]

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

Definition at line 292 of file zookeeper_client.cc.

◆ ~ZookeeperClient()

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

Definition at line 332 of file zookeeper_client.cc.

◆ ZookeeperClient() [2/2]

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

Definition at line 297 of file zookeeper_client.cc.

Member Function Documentation

◆ AddListener()

void zookeeper::client::ZookeeperClient::AddListener ( ZooStateCallback  cb)

Definition at line 325 of file zookeeper_client.cc.

◆ CheckNodeExist()

bool zookeeper::client::ZookeeperClient::CheckNodeExist ( const char *  path)

Definition at line 313 of file zookeeper_client.cc.

◆ CreateNode()

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.

◆ DeleteNode()

bool zookeeper::client::ZookeeperClient::DeleteNode ( const char *  path)

Definition at line 317 of file zookeeper_client.cc.

◆ Shutdown()

void zookeeper::client::ZookeeperClient::Shutdown ( void  )

Definition at line 321 of file zookeeper_client.cc.

Friends And Related Function Documentation

◆ ::ZookeeperClientTest

friend class ::ZookeeperClientTest
friend

Definition at line 48 of file zookeeper_client.h.

◆ ZookeeperLock

friend class ZookeeperLock
friend

Definition at line 47 of file zookeeper_client.h.

Member Data Documentation

◆ cb

ZooStateCallback zookeeper::client::ZookeeperClient::cb

Definition at line 42 of file zookeeper_client.h.

◆ impl_

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: