diff options
Diffstat (limited to 'cpp/src/qpid/cluster/ClusterPlugin.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/ClusterPlugin.cpp | 9 |
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) { |