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

virtual int16_t getPort () const
 Return listening port.
virtual void run ()
 Run the broker.
virtual void shutdown ()
 Shut down the broker.
MessageStoregetStore ()
QueueRegistrygetQueues ()
ExchangeRegistry & getExchanges ()
uint32_t getTimeout ()
uint64_t getStagingThreshold ()
AutoDelete & getCleaner ()

Static Public Member Functions

static shared_ptr create (int16_t port=DEFAULT_PORT)
 Create a broker.
static shared_ptr create (const Configuration &config)
 Create a broker using a Configuration.

Static Public Attributes

static const int16_t DEFAULT_PORT

Detailed Description

A broker instance.


Member Function Documentation

static shared_ptr qpid::broker::Broker::create ( int16_t  port = DEFAULT_PORT  )  [static]

Create a broker.

Parameters:
port Port to listen on or 0 to pick a port dynamically.

virtual int16_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.


The documentation for this class was generated from the following file:
Generated on Tue Apr 17 14:22:11 2007 for Qpid by  doxygen 1.4.7