summaryrefslogtreecommitdiff
path: root/qpid/cpp/managementgen/qmfgen
Commit message (Collapse)AuthorAgeFilesLines
* QPID-7207: remove cpp and python subdirs from svn trunk, they have migrated ↵Robert Gemmell2016-07-0514-3392/+0
| | | | | | to their own git repositories git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1751566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7306: Fix race conditions during Queue destruction.Alan Conway2016-06-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | Stack traces indicate a Queue was being destroyed concurrently while still in use by its ManagedObject. ManagedObject holds a plain pointer to the Manageable object (e.g. Queue) it belongs to. The Manageable calls ManagedObject::resourceDestroy() when it is deleted, but without any locking. Added a locked wrapper class ManageablePtr so destroy is atomic with respect to other calls via ManageablePtr, calls after pointer is reset to 0 in destroy() are skipped. Call resourceDestroy() in Queue::~Queue if it was not called already. This is probably redundant given given the fixes above but can't hurt. Queue::destroyed() was also being called without locking and could be called concurrrently, e.g. if auto-delete happens concurrently with delete via QMF or by a 0-10 client. Moved the destroyed() call into QueueRegistry::destroy(), using QueueRegistry lock to guarantee it is called exactly once. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1749782 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5703: Quiet the code generatorsJustin Ross2015-02-101-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1658784 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5107: Trace queue&session deletion statistics show zero values for some ↵Pavel Moravec2013-09-062-7/+14
| | | | | | counters everytime git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1520579 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4640: QPID-3633: Remove autotools build from qpid C++ source treeAndrew Stitcher2013-07-251-40/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1507112 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4449 Repair some windows settings damaged during this jira.Charles E. Rolke2012-12-031-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1416692 13f79535-47bb-0310-9956-ffa450edef68
* QPID_4449 - Further fixes to the build files for both automake and cmake.Ted Ross2012-12-031-2/+2
| | | | | | | Fixed some build issues affecting Windows. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1416594 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4449 - Reverted much of the original change and re-implemented the fix ↵Ted Ross2012-11-302-6/+5
| | | | | | | | | | in a simpler way. The build-define _IN_QPID_BROKER is now used for modules built in the broker. The shared-pointer changes are conditionally compiled only for in-broker cases. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1415796 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4450 - Don't generate QPID_BROKER_[CLASS_]EXTERN when the generated ↵Ted Ross2012-11-205-25/+45
| | | | | | | | | code is for a standalone (not in-broker) agent. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1411780 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4449 - Fixed the API in qpid::management::Manageable to remain backward ↵Ted Ross2012-11-201-2/+6
| | | | | | compatible. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1411761 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Repair r1405147 for correctness.Charles E. Rolke2012-11-021-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1405164 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA repair r1404665 under windowsCharles E. Rolke2012-11-021-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1405147 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Rename generated event PACKAGE_NAME, clashes with #defines.Alan Conway2012-11-012-11/+13
| | | | | | | | PACKAGE_NAME is a common name for #define macros in legacy code. Replaced public PACKAGE_NAME, EVENT_NAME with private camelCase members and added static getFullName() git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1404665 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added missing #include <limits> to management codegen template.Alan Conway2012-10-161-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1398778 13f79535-47bb-0310-9956-ffa450edef68
* MQPID-4286: QMF queries for HA replication take too long to process (Jason ↵Alan Conway2012-10-151-0/+2
| | | | | | | | | | Dillaman) Rework ManagementAgent locks, get rid of shared buffers that were points of contention. Minor log message improvements in ha code. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1398530 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4350 BZ860701 HA handle autodelete queues - repair windows buildCharles E. Rolke2012-10-121-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1397735 13f79535-47bb-0310-9956-ffa450edef68
* Bug 860701 - QPID-4350: HA handle auto-delete queuesAlan Conway2012-10-112-10/+11
| | | | | | | Subscribed auto-delete queues are deleted by the backup. Timed auto-delete queues are deleted after the timeout. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1397243 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4079 log entries track managed object life cyclesCharles E. Rolke2012-07-132-3/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1361262 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4071: basic porting changes for solaris native compilerClifford Allan Jansen2012-06-171-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351185 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3969 - Improved handling of unspecified arguments in QMFv2 method calls.Ted Ross2012-04-242-4/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1329817 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3875: allow direct access to per-thread statisticsKenneth Anthony Giusti2012-03-021-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1296448 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix missing EXTERN declarations, broke windows build.Alan Conway2012-02-204-32/+39
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291436 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Merge new HA foundations.Alan Conway2012-02-174-2/+14
| | | | | | | Merged from qpid-3603-7. This is basic support for the new HA approach. For information & limitations see qpid/cpp/design_docs/new-ha-design.txt. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245587 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3159 - Applied patch from Angus SalkeldTed Ross2011-03-221-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1084359 13f79535-47bb-0310-9956-ffa450edef68
* Updates to the V2-style qmf-generation templates:Ted Ross2010-12-162-3/+5
| | | | | | | | 1) Added include directives in the .h template for convenience 2) Moved the schema-registration out of the class constructor and into a method. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1049754 13f79535-47bb-0310-9956-ffa450edef68
* Added an option to the qmf-gen tool to generate v2-style schema declarations.Ted Ross2010-12-154-0/+239
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1049425 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2934 Feature to pass the authenticated userId to QMF agent method ↵Ted Ross2010-11-092-10/+22
| | | | | | handlers for authorization git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1033232 13f79535-47bb-0310-9956-ffa450edef68
* add ASF licence to various files in the cpp treeRobert Gemmell2010-10-312-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1029521 13f79535-47bb-0310-9956-ffa450edef68
* clarify a commentKenneth Anthony Giusti2010-09-221-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@999916 13f79535-47bb-0310-9956-ffa450edef68
* QMF: fix object name separator, use native bool typeKenneth Anthony Giusti2010-04-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@935961 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2506: enable map and list method arguments.Kenneth Anthony Giusti2010-04-141-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@934117 13f79535-47bb-0310-9956-ffa450edef68
* Fix testagent for changes in r933842Gordon Sim2010-04-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@933923 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2489 - Added wrapped version of Mutex to isolate QMF-generated source ↵Ted Ross2010-04-093-11/+11
| | | | | | from boost. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@932517 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2489 - Remove references to boost:: and qpid::framing:: from ↵Ted Ross2010-04-095-59/+62
| | | | | | | | | | | QMF-generated cpp files Added a wrapper class for framing::Buffer in the qpid::management namespace. This wrapper class has no reference to framing or boost and is now used in the generated C++ code to encode QMFv1 content. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@932236 13f79535-47bb-0310-9956-ffa450edef68
* Merged the changes from the qmf-devel0.7a branch back to the trunk.Ted Ross2010-03-318-68/+550
| | | | | | | | | | | | | | | | | This is a checkpoint along the QMFv2 development path. This update introduces portions of QMFv2 into the code: - The C++ agent (qpid/agent) uses QMFv2 for data and method transfer o The APIs no longer use qpid::framing::* o Consequently, boost is no longer referenced from the API headers. o Agents and Objects are now referenced by strings, not numbers. o Schema transfer still uses the QMFv1 format. - The broker-resident agent can use QMFv1 or QMFv2 based on the command line options. It defaults to QMFv1 for compatibility. - The pure-python QMF console (qmf.console) can concurrently interact with both QMFv1 and QMFv2 agents. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@929716 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2436: Drop the vhost prefix in QMF V2keys.Alan Conway2010-03-081-7/+8
| | | | | | | | | - The prefix makes the keys extremely long and unreadable. - In a standalone broker it adds nothing since its the same for every object. - In a cluster you need a consistent ID for shadow connections on all brokers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@920413 13f79535-47bb-0310-9956-ffa450edef68
* Added encode/decode/encodedSize methods for management objects.Ted Ross2010-02-044-35/+61
| | | | | | | Made methods on generated code public. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@906573 13f79535-47bb-0310-9956-ffa450edef68
* Changes to management code generation:Ted Ross2010-02-034-29/+85
| | | | | | | | | | 1) Added readProperties(Buffer) method to ManagementObject to help in the serialization and unserialization of data for cluster replication. 2) Added hooks to ManagementObject and ObjectId to prepare for QMFv2 object naming. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@906038 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2245 QMF protocol changes will make 0.6 incompatible with 0.5Ted Ross2009-12-112-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@889619 13f79535-47bb-0310-9956-ffa450edef68
* Separate generated public header files from non-public headers, generated ↵Alan Conway2009-07-271-2/+2
| | | | | | | | | | | | | | | | | | | | code re-organization. The gen/ directory has been removed, code is now generated into: $(builddir)/src - all .cpp files and non-public .h files. $(builddir)/include - all public .h files. The gen/ directory was originally intended to separate generated code from hand-written code. However both automake and cmake allow you to direct all build output, including generated code, into a separate build directory. In fact both recommend you build this way. Keeping the gen/ directory meant there would have been a total of 8 places to look for header files, all the combinations of builddir/srcdir, src/include and gen/no-gen. This was a mess, 4 is bad enough. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@798291 13f79535-47bb-0310-9956-ffa450edef68
* Fix make build to generate code into the build treeAndrew Stitcher2009-07-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@790465 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1786 - Committed qmf patches from Bryan KearneyTed Ross2009-06-113-1/+3
| | | | | | | | Additionally updated existing qmf and Qman to be compatible. The magic number for qmf messages has been incremented. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@783818 13f79535-47bb-0310-9956-ffa450edef68
* Fix managementgen so to avoid trying to move files cross fsAndrew Stitcher2009-05-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@777146 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1843 - Cleaned up the interface to the broker's internal management agent.Ted Ross2009-05-116-10/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@773570 13f79535-47bb-0310-9956-ffa450edef68
* Merge in initial changes to allow building with CMake; rubygen and ↵Stephen D. Huston2009-04-232-4/+130
| | | | | | managementgen can now generate either .mk files or .cmake files as needed; CONF_FILE and MODULE_DIR macros now have broker/client counterparts QPIDD_CONF_FILE, QPIDD_MODULE_DIR, QPIDC_CONF_FILE, QPIDC_MODULE_DIR configurable by cmake git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@768085 13f79535-47bb-0310-9956-ffa450edef68
* Minor correction to included ASF licenseGordon Sim2008-12-153-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@726685 13f79535-47bb-0310-9956-ffa450edef68
* Management optimization: don't send (empty) statistic updates for objectTed Ross2008-12-081-15/+16
| | | | | | | classes that don't have statistics. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@724356 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a performance regression caused by the management code.Ted Ross2008-12-011-4/+0
| | | | | | | | | | The current/last-change timestamp is now set on management objects when they are published, not when they actually change. Also, the timestamp is updated only if modifications were made to the object in the last publish interval. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@722120 13f79535-47bb-0310-9956-ffa450edef68
* Bug fixes for QMF:Ted Ross2008-11-261-4/+4
| | | | | | | | | | | | ManagementAgentImpl - don't send messages if broker is not connected. ManagementBroker - agents could be assigned the same agentBank - don't send console-attached for attached agents - handle multiple qmf messages in an AMQP body schema.py - Don't use the FieldTable copy-constructor, use .clear() git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@720973 13f79535-47bb-0310-9956-ffa450edef68
* Fixed several problems related to qmf update timestamps:Ted Ross2008-11-211-0/+4
| | | | | | | | | | | | | - Timestamps were set at update send time regardless of whether the object's contents were actually changed. Now timestamps are set at the time of the change. - Agent heartbeat messages are now being sent after periodic updates, not before. Cleaned up the Agent object in qmf.console. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@719699 13f79535-47bb-0310-9956-ffa450edef68