qpid::cluster::Cpg Class Reference

Lightweight C++ interface to cpg.h operations. More...

#include <Cpg.h>

Inheritance diagram for qpid::cluster::Cpg:

Inheritance graph
[legend]
Collaboration diagram for qpid::cluster::Cpg:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Cpg (Handler &)
 Open a CPG handle.
 ~Cpg ()
 Destructor calls shutdown.
void shutdown ()
 Disconnect from CPG.
void dispatch (cpg_dispatch_t type)
 Dispatch CPG events.
void dispatchOne ()
 Dispatch one event in current thread.
void dispatchAll ()
 Dispatch all available events, don't block.
void dispatchBlocking ()
 Blocking loop to dispatch cluster events.
void join (const Name &group)
void leave (const Name &group)
void mcast (const Name &group, const iovec *iov, int iovLen)
cpg_handle_t getHandle () const

Static Public Member Functions

static std::string str (const cpg_name &n)


Detailed Description

Lightweight C++ interface to cpg.h operations.

Manages a single CPG handle, initialized in ctor, finialzed in destructor. On error all functions throw Cpg::Exception


Constructor & Destructor Documentation

qpid::cluster::Cpg::Cpg ( Handler &   ) 

Open a CPG handle.

Parameters:
handler for CPG events.

qpid::cluster::Cpg::~Cpg (  ) 

Destructor calls shutdown.


Member Function Documentation

void qpid::cluster::Cpg::dispatch ( cpg_dispatch_t  type  )  [inline]

Dispatch CPG events.

Parameters:
type one of
  • CPG_DISPATCH_ONE - dispatch exactly one event.
  • CPG_DISPATCH_ALL - dispatch all available events, don't wait.
  • CPG_DISPATCH_BLOCKING - blocking dispatch loop.

Referenced by dispatchAll(), dispatchBlocking(), and dispatchOne().

void qpid::cluster::Cpg::dispatchOne (  )  [inline, virtual]

Dispatch one event in current thread.

Implements qpid::cluster::Dispatchable.

References dispatch().

void qpid::cluster::Cpg::dispatchAll (  )  [inline, virtual]

Dispatch all available events, don't block.

Implements qpid::cluster::Dispatchable.

References dispatch().


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

Generated on Thu May 15 22:24:21 2008 for Qpid by  doxygen 1.5.5