qpid::cluster::Cluster Class Reference

Connection to the cluster. More...

#include <Cluster.h>

Inheritance diagram for qpid::cluster::Cluster:
[legend]
Collaboration diagram for qpid::cluster::Cluster:
[legend]

List of all members.

Public Member Functions

 Cluster (const std::string &name, const Url &url, broker::Broker &)
 Join a cluster.
void insert (const boost::intrusive_ptr< Connection > &)
void erase (ConnectionId)
std::vector< UrlgetUrls () const
 Get the URLs of current cluster members.
size_t size () const
 Number of members in the cluster.
bool empty () const
void send (const framing::AMQFrame &, const ConnectionId &)
 Send frame to the cluster.
void leave ()
 Leave the cluster.
void joined (const MemberId &, const std::string &url)
broker::BrokergetBroker ()
MemberId getSelf () const

Friends

std::ostream & operator<< (std::ostream &, const Cluster &)
std::ostream & operator<< (std::ostream &, const UrlMap::value_type &)
std::ostream & operator<< (std::ostream &, const UrlMap &)


Detailed Description

Connection to the cluster.

Keeps cluster membership data.

Definition at line 46 of file Cluster.h.


Constructor & Destructor Documentation

qpid::cluster::Cluster::Cluster ( const std::string &  name,
const Url url,
broker::Broker  
)

Join a cluster.

Parameters:
name of the cluster.
url of this broker, sent to the cluster.


Member Function Documentation

std::vector<Url> qpid::cluster::Cluster::getUrls (  )  const

Get the URLs of current cluster members.

size_t qpid::cluster::Cluster::size (  )  const

Number of members in the cluster.


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

Generated on Fri Sep 5 00:23:52 2008 for Qpid by  doxygen 1.5.6