diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/broker/Broker.cpp | 4 | ||||
-rw-r--r-- | cpp/src/qpid/broker/Broker.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp index a288da00c7..c93949e33f 100644 --- a/cpp/src/qpid/broker/Broker.cpp +++ b/cpp/src/qpid/broker/Broker.cpp @@ -512,5 +512,9 @@ void Broker::setClusterTimer(std::auto_ptr<sys::Timer> t) { const std::string Broker::TCP_TRANSPORT("tcp"); +void Broker::setCluster(std::auto_ptr<Cluster> c) { cluster = c; } + +Cluster& Broker::getCluster() { return *cluster; } + }} // namespace qpid::broker diff --git a/cpp/src/qpid/broker/Broker.h b/cpp/src/qpid/broker/Broker.h index dcb20c4fe3..d589b15f19 100644 --- a/cpp/src/qpid/broker/Broker.h +++ b/cpp/src/qpid/broker/Broker.h @@ -275,8 +275,8 @@ public: void setClusterUpdatee(bool set) { clusterUpdatee = set; } bool isClusterUpdatee() const { return clusterUpdatee; } - QPID_BROKER_EXTERN void setCluster(std::auto_ptr<Cluster> c) { cluster = c; } - QPID_BROKER_EXTERN Cluster& getCluster() { return *cluster; } + QPID_BROKER_EXTERN void setCluster(std::auto_ptr<Cluster> c); + QPID_BROKER_EXTERN Cluster& getCluster(); management::ManagementAgent* getManagementAgent() { return managementAgent.get(); } |