From 1256ed9262d0a8f769a72eb83b1669b33e1f7f59 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 23 Apr 2010 19:07:14 +0000 Subject: 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 --- cpp/src/qpid/cluster/ClusterPlugin.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'cpp/src/qpid/cluster/ClusterPlugin.cpp') 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) { -- cgit v1.2.1