#include <Cpg.h>
Inheritance diagram for qpid::cluster::Cpg:
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) |
Manages a single CPG handle, initialized in ctor, finialzed in destructor. On error all functions throw Cpg::Exception
qpid::cluster::Cpg::Cpg | ( | Handler & | ) |
Open a CPG handle.
handler | for CPG events. |
void qpid::cluster::Cpg::dispatch | ( | cpg_dispatch_t | type | ) | [inline] |
Dispatch CPG events.
type | one of
|