summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/ClusterPlugin.cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2010-04-23 19:07:14 +0000
committerTed Ross <tross@apache.org>2010-04-23 19:07:14 +0000
commit1256ed9262d0a8f769a72eb83b1669b33e1f7f59 (patch)
tree7b7e72b21445fdd2f6715e0f90cd7a82c73e2a0a /cpp/src/qpid/cluster/ClusterPlugin.cpp
parent4d8b7a47d1c774ccd4899c2f40acff744cf79a75 (diff)
downloadqpid-python-1256ed9262d0a8f769a72eb83b1669b33e1f7f59.tar.gz
Cluster management improvements:
1) Enable all management methods via QMFv2 for clusters 2) Disable all management methods via QMFv1 for clusters 3) The broker-resident management agent can handle both v1 and v2 method calls 4) qmf.console (Python) now works with new and old brokers by detecting whether the broker can handle v2 commands git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937472 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ClusterPlugin.cpp')
-rw-r--r--cpp/src/qpid/cluster/ClusterPlugin.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/cpp/src/qpid/cluster/ClusterPlugin.cpp b/cpp/src/qpid/cluster/ClusterPlugin.cpp
index 6806b3e1dd..3192896956 100644
--- a/cpp/src/qpid/cluster/ClusterPlugin.cpp
+++ b/cpp/src/qpid/cluster/ClusterPlugin.cpp
@@ -146,16 +146,9 @@ struct ClusterPlugin : public Plugin {
}
}
- void disallow(ManagementAgent* agent, const string& className, const string& methodName) {
- string message = "Management method " + className + ":" + methodName + " is not allowed on a clustered broker.";
- agent->disallow(className, methodName, message);
- }
void disallowManagementMethods(ManagementAgent* agent) {
if (!agent) return;
- disallow(agent, "queue", "purge");
- disallow(agent, "session", "detach");
- disallow(agent, "session", "close");
- disallow(agent, "connection", "close");
+ agent->disallowV1Methods();
}
void initialize(Plugin::Target& target) {