qpid::broker::Broker Class Reference

A broker instance. More...

#include <Broker.h>

Inheritance diagram for qpid::broker::Broker:

Inheritance graph
[legend]
Collaboration diagram for qpid::broker::Broker:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Broker (const Options &configuration)
virtual uint16_t getPort () const
 Return listening port.
virtual void run ()
 Run the broker.
virtual void shutdown ()
 Shut down the broker.
void setStore (MessageStore *)
MessageStoregetStore ()
QueueRegistrygetQueues ()
ExchangeRegistry & getExchanges ()
LinkRegistry & getLinks ()
uint64_t getStagingThreshold ()
DtxManager & getDtxManager ()
DataDirgetDataDir ()
Options & getOptions ()
SessionManagergetSessionManager ()
management::ManagementObject::shared_ptr GetManagementObject (void) const
management::Manageable * GetVhostObject (void) const
management::Manageable::status_t ManagementMethod (uint32_t methodId, management::Args &args)
void registerProtocolFactory (boost::shared_ptr< sys::ProtocolFactory >)
 Add to the broker's protocolFactorys.
void accept ()
 Accept connections.
void connect (const std::string &host, uint16_t port, bool useSsl, sys::ConnectionCodec::Factory *=0, sys::ProtocolAccess *=0)
 Create a connection to another broker.
void connect (const Url &url, sys::ConnectionCodec::Factory *=0)
 Create a connection to another broker.
boost::shared_ptr
< sys::ProtocolFactory > 
getProtocolFactory () const

Static Public Member Functions

static shared_ptr< Brokercreate (const Options &configuration)
static shared_ptr< Brokercreate (int16_t port=DEFAULT_PORT)


Detailed Description

A broker instance.

Member Function Documentation

virtual uint16_t qpid::broker::Broker::getPort (  )  const [virtual]

Return listening port.

If called before bind this is the configured port. If called after it is the actual port, which will be different if the configured port is 0.

virtual void qpid::broker::Broker::run (  )  [virtual]

Run the broker.

Implements Runnable::run() so the broker can be run in a separate thread.

Implements qpid::sys::Runnable.

void qpid::broker::Broker::connect ( const std::string &  host,
uint16_t  port,
bool  useSsl,
sys::ConnectionCodec::Factory *  = 0,
sys::ProtocolAccess *  = 0 
)

Create a connection to another broker.

void qpid::broker::Broker::connect ( const Url url,
sys::ConnectionCodec::Factory *  = 0 
)

Create a connection to another broker.


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

Generated on Thu May 15 22:23:10 2008 for Qpid by  doxygen 1.5.5