diff options
Diffstat (limited to 'cpp/src/qpid/store/MessageStorePlugin.h')
| -rw-r--r-- | cpp/src/qpid/store/MessageStorePlugin.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/store/MessageStorePlugin.h b/cpp/src/qpid/store/MessageStorePlugin.h index d43e2d3ea8..4a9bb2aecb 100644 --- a/cpp/src/qpid/store/MessageStorePlugin.h +++ b/cpp/src/qpid/store/MessageStorePlugin.h @@ -57,7 +57,7 @@ class MessageStorePlugin : // @TODO Need a mgmt story for this. Maybe allow r/o access to provider store info? public qpid::management::Manageable { public: - MessageStorePlugin() {} + MessageStorePlugin() : broker(0) {} /** * @name Methods inherited from qpid::Plugin @@ -264,6 +264,9 @@ class MessageStorePlugin : // inline management::Manageable::status_t ManagementMethod (uint32_t, management::Args&, std::string&) // { return management::Manageable::STATUS_OK; } + // So storage provider can get the broker info. + broker::Broker *getBroker() { return broker; } + protected: struct StoreOptions : public qpid::Options { @@ -276,6 +279,8 @@ class MessageStorePlugin : ProviderMap providers; ProviderMap::const_iterator provider; + broker::Broker *broker; + }; // class MessageStoreImpl }} // namespace qpid::store |
