diff options
| author | Gordon Sim <gsim@apache.org> | 2009-01-15 11:29:38 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2009-01-15 11:29:38 +0000 |
| commit | 62371078f1f853a05d0ff2e31190baf018e4afc9 (patch) | |
| tree | 1dcdb048c61b02aa8b88156782956d220e7d9ba7 /qpid/cpp/src/tests/BrokerFixture.h | |
| parent | 0e301ae9e147701bc0c0e522a02ddb41683ff607 (diff) | |
| download | qpid-python-62371078f1f853a05d0ff2e31190baf018e4afc9.tar.gz | |
QPID-1567: Initial support for asynchronous queue state replication
* Added QueueEvents class with per broker instance
* Modified qpid::broker::Queue to notify QueueEvents of enqueues and dequeues (based on configuration)
* Added replication subdir containing two plugins:
- an event listener that registers with QueueEvents and creates messages representing received
events on a replication queue
- a custom exchange type for processing messages of the format created by the listener plugin
* Added new option for controlling event generation to qpid::client::QueueOptions
* Added new queue option to qpid-config script for the same
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@734674 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerFixture.h')
| -rw-r--r-- | qpid/cpp/src/tests/BrokerFixture.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/BrokerFixture.h b/qpid/cpp/src/tests/BrokerFixture.h index 2a4faa2fd4..205b4d90ef 100644 --- a/qpid/cpp/src/tests/BrokerFixture.h +++ b/qpid/cpp/src/tests/BrokerFixture.h @@ -66,8 +66,14 @@ struct BrokerFixture : private boost::noncopyable { brokerThread = qpid::sys::Thread(*broker); }; - ~BrokerFixture() { + void shutdownBroker() + { broker->shutdown(); + broker = BrokerPtr(); + } + + ~BrokerFixture() { + if (broker) broker->shutdown(); brokerThread.join(); } |
