diff options
author | Gordon Sim <gsim@apache.org> | 2011-02-14 14:07:14 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-02-14 14:07:14 +0000 |
commit | fb0ed749558c97795571cb56f394a983fd13f8ce (patch) | |
tree | 3bcb4ebdfcdb4bea8fba490b9cce6133d65d40b2 | |
parent | 05cf26aace94fa45d419a7c8b45f131b866ef89b (diff) | |
download | qpid-python-fb0ed749558c97795571cb56f394a983fd13f8ce.tar.gz |
QPID-3053: Enable broadcast via QMFv2 by default; add option to allow broadcast over QMFv1 to be independently controlled.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1070491 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/qpid/broker/Broker.cpp | 8 | ||||
-rw-r--r-- | cpp/src/qpid/broker/Broker.h | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp index 0cc150419f..cb301916c2 100644 --- a/cpp/src/qpid/broker/Broker.cpp +++ b/cpp/src/qpid/broker/Broker.cpp @@ -102,7 +102,8 @@ Broker::Options::Options(const std::string& name) : requireEncrypted(false), maxSessionRate(0), asyncQueueEvents(false), // Must be false in a cluster. - qmf2Support(false) + qmf2Support(true), + qmf1Support(true) { int c = sys::SystemInfo::concurrency(); workerThreads=c+1; @@ -122,7 +123,8 @@ Broker::Options::Options(const std::string& name) : ("max-connections", optValue(maxConnections, "N"), "Sets the maximum allowed connections") ("connection-backlog", optValue(connectionBacklog, "N"), "Sets the connection backlog limit for the server socket") ("mgmt-enable,m", optValue(enableMgmt,"yes|no"), "Enable Management") - ("mgmt-qmf2", optValue(qmf2Support,"yes|no"), "Use QMF v2 for Broker Management") + ("mgmt-qmf2", optValue(qmf2Support,"yes|no"), "Enable broadcast of management information over QMF v2") + ("mgmt-qmf1", optValue(qmf1Support,"yes|no"), "Enable broadcast of management information over QMF v1") ("mgmt-pub-interval", optValue(mgmtPubInterval, "SECONDS"), "Management Publish Interval") ("queue-purge-interval", optValue(queueCleanInterval, "SECONDS"), "Interval between attempts to purge any expired messages from queues") @@ -148,7 +150,7 @@ const std::string knownHostsNone("none"); Broker::Broker(const Broker::Options& conf) : poller(new Poller), config(conf), - managementAgent(conf.enableMgmt ? new ManagementAgent(!conf.qmf2Support, + managementAgent(conf.enableMgmt ? new ManagementAgent(conf.qmf1Support, conf.qmf2Support) : 0), store(new NullMessageStore), diff --git a/cpp/src/qpid/broker/Broker.h b/cpp/src/qpid/broker/Broker.h index 32e2c8ab6b..cd6f81dc70 100644 --- a/cpp/src/qpid/broker/Broker.h +++ b/cpp/src/qpid/broker/Broker.h @@ -115,6 +115,7 @@ public: uint32_t maxSessionRate; bool asyncQueueEvents; bool qmf2Support; + bool qmf1Support; private: std::string getHome(); |