qpid::cluster::Cpg Class Reference

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

#include <Cpg.h>

Inherits qpid::sys::IOHandle.

List of all members.

Public Member Functions

 Cpg (Handler &)
 Open a CPG handle.
 ~Cpg ()
 Destructor calls shutdown if not already calledx.
void shutdown ()
 Disconnect from CPG.
void dispatch (cpg_dispatch_t type)
 Dispatch CPG events.
void dispatchOne ()
void dispatchAll ()
void dispatchBlocking ()
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
MemberId self () const
int getFd ()

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.

Definition at line 49 of file Cpg.h.


Constructor & Destructor Documentation

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

Open a CPG handle.

Parameters:
handler for CPG events.

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

Destructor calls shutdown if not already calledx.


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.

Definition at line 108 of file Cpg.h.


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

Generated on Thu Oct 16 13:38:28 2008 for Qpid by  doxygen 1.5.6