diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-11-04 00:40:44 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-11-04 00:40:44 +0000 |
commit | e3a366af59b84b47b29edbb1d8d8b2f18cb3d9dc (patch) | |
tree | 08d3eda3b13c853fb35ac73f414308833f2eca20 /qpid/cpp/src/qpid/broker/QueueRegistry.cpp | |
parent | 0de8704607f5f7101cbb5346c3f3d36f3868659f (diff) | |
download | qpid-python-e3a366af59b84b47b29edbb1d8d8b2f18cb3d9dc.tar.gz |
AMQP 670 This patch contains the following:
1) "using" clauses were removed from one header file. This required changes in other header and body files that were relying on that clause.
2) The object indexing scheme has been improved in the management schema. Objects now properly reference their parent/containing objects.
3) The framework for parsing management commands has been added.
4) The python management API has been improved and now includes an object-method call.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@591715 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/QueueRegistry.cpp')
-rw-r--r-- | qpid/cpp/src/qpid/broker/QueueRegistry.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/QueueRegistry.cpp b/qpid/cpp/src/qpid/broker/QueueRegistry.cpp index 31eab33fe2..bc7f00c7ef 100644 --- a/qpid/cpp/src/qpid/broker/QueueRegistry.cpp +++ b/qpid/cpp/src/qpid/broker/QueueRegistry.cpp @@ -47,7 +47,8 @@ QueueRegistry::declare(const string& declareName, bool durable, queues[name] = queue; if (managementAgent){ - ManagementObjectQueue::shared_ptr mgmtObject(new ManagementObjectQueue (name, durable, autoDelete)); + ManagementObjectQueue::shared_ptr mgmtObject + (new ManagementObjectQueue (managementVhost->getObjectId (), name, durable, autoDelete)); queue->setMgmt (mgmtObject); managementAgent->addObject(dynamic_pointer_cast<ManagementObject>(mgmtObject)); @@ -115,3 +116,7 @@ ManagementAgent::shared_ptr QueueRegistry::getManagementAgent (void) return managementAgent; } +void QueueRegistry::setManagementVhost (ManagementObject::shared_ptr vhost) +{ + managementVhost = vhost; +} |