summaryrefslogtreecommitdiff
path: root/qpid/cpp/managementgen/templates/Class.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-12-10 20:22:23 +0000
committerAlan Conway <aconway@apache.org>2007-12-10 20:22:23 +0000
commit340eccfc41a61b5cea01184f0da40b2f78c20a3f (patch)
tree998b9e11be40a884d86caf96005be5db75e991ab /qpid/cpp/managementgen/templates/Class.h
parent228e12dddd4287d0f333b211b4b095a2e11da9a1 (diff)
downloadqpid-python-340eccfc41a61b5cea01184f0da40b2f78c20a3f.tar.gz
Patches from Ted Ross <tross@redhat.com>
QPID-697 Fixed access-rights constants for management schema. Added mutex to fix problems associated with concurrent invocation of accessors for queue statistics. Removed queue schema content that is not relevant to QPID. QPID-698 This patch creates a new subdirectory in python called "mgmt-cli". python/mgmt-cli/main.py can be executed from the shell. If no arguments are supplied, it attempts to connect to the broker at localhost:5672. The first argument is the hostname for the target broker and the second (optional) argument is the TCP port (defaults to 5672). It is assumed that the AMQP spec file is in the following location: /usr/share/amqp/amqp.0-10-preview.xml It is also required that the qpid/python directory be in the PYTHONPATH environment variable. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@603034 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/managementgen/templates/Class.h')
-rw-r--r--qpid/cpp/managementgen/templates/Class.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/managementgen/templates/Class.h b/qpid/cpp/managementgen/templates/Class.h
index cff915412e..6a54b2131c 100644
--- a/qpid/cpp/managementgen/templates/Class.h
+++ b/qpid/cpp/managementgen/templates/Class.h
@@ -22,6 +22,7 @@
/*MGEN:Root.Disclaimer*/
+#include "qpid/sys/Mutex.h"
#include "qpid/management/ManagementObject.h"
namespace qpid {
@@ -52,6 +53,7 @@ class /*MGEN:Class.NameCap*/ : public ManagementObject
public:
typedef boost::shared_ptr</*MGEN:Class.NameCap*/> shared_ptr;
+ qpid::sys::Mutex accessorLock;
/*MGEN:Class.NameCap*/ (Manageable* coreObject, Manageable* parentObject,
/*MGEN:Class.ConstructorArgs*/);