summaryrefslogtreecommitdiff
path: root/qpid/cpp
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4027 Made modifications to reflect the changes made to interfaces.Rajith Muditha Attapattu2012-06-261-1/+1
| | | | | | Fixed bugs identified in testing. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1354074 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added one-to-one exception mapping between c++ and java toRajith Muditha Attapattu2012-06-152-0/+135
| | | | | | provide the application/users more detailed error information. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350712 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Renamed the generated JNI wrapper files to use the PrefixRajith Muditha Attapattu2012-06-151-0/+5
| | | | | | | | Native. This allows me to just use NativeMessage instead of o.a.q.messaging.cpp.jni.Message to prevent a clash with Java Message interface. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350711 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added a toString method to the Message class by using the swigRajith Muditha Attapattu2012-06-104-48/+56
| | | | | | | | | "%extend" directive. Used the same for moving the methods I introduced in Mesage.h to java.i interface file. The BYTE_BUFFER struct is also moved into the swig file. The only extra methods we need to add to Message.h is to get/set the message headers as raw bytes. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1348683 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 when retrieving objects from the map they are now directlyRajith Muditha Attapattu2012-06-102-41/+35
| | | | | | | | | | returned with being assigned to a local jobject, as it then looses the type information when received at the Java layer. The code now avoids using cached JNIEnv pointers as if it gets called from a different thread the ref will be now and a seg fault will occur. The encoding type is set for String properties. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1348682 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Fixed a bunch errors in converting java types to variant.Rajith Muditha Attapattu2012-06-072-12/+9
| | | | | | The message header stuff are still a bit flaky and needs to polished. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347733 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Handles the empty and null map case.Rajith Muditha Attapattu2012-06-072-3/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347732 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Fixed the handling of VariantMaps and Variant types.Rajith Muditha Attapattu2012-06-073-14/+69
| | | | | | | | | | | | Added freeargs to delete the args created on the heap. WriteOnlyVariantMapWrapper takes care of mapping a Java Map into a VariantMap. This is inefficient, but it's only used in non critical code. The ReadOnlyVariantMapWrapper wraps a VariantMap and provides a java.util.Map interface to the Java code. As the name suggests it's read-only :). git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347731 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Adeed error handling when converting from Variant to JavaRajith Muditha Attapattu2012-06-071-7/+26
| | | | | | types. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347730 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added error handling when converting between java and variantRajith Muditha Attapattu2012-06-072-1/+28
| | | | | | types. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347729 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added error handling and basic logging for the library onloadRajith Muditha Attapattu2012-06-071-21/+34
| | | | | | method. Using static_cast instead of the "C" style casts. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347728 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added class for implementing the correct behavior whenRajith Muditha Attapattu2012-06-071-65/+80
| | | | | | creating native strings from a java string. Removed unwanted code. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347727 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Marked the jclass references as global refs to prevent themRajith Muditha Attapattu2012-06-071-29/+48
| | | | | | | | from being cleaned up. The jmethodID's will remain valid until the corresponding jclass is cleaned up. Created convinience methods for looking up class defs and methods. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347726 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added a method to check for null keys on the java side, when ↵Rajith Muditha Attapattu2012-06-073-30/+471
| | | | | | | | | | | | | | | looking up values on the c++ side. Made the following changes in the c++ helper code, jclass and jmethodID's are cached for performance. Added JNICALL JNI_OnLoad method to init all the global variables. Renamed VarientMapWrapper to ReadOnlyVariantMapWrapper which will provide read only access to the underlying VariantMap. Added a helper method converting Java types to Variant types. Added a bunch of convinience methods for creating new java types. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347725 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Refactored the swig files to make them more readable. AddedRajith Muditha Attapattu2012-06-016-342/+243
| | | | | | | | | comments to explain the code. Removed the VariantMapWrapper files as they are now added into swig_java_cpp_helper.i classes. If someones wants to use swig to wrap qmfv2 they could now use the type maps defined here. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1344979 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Changed the typemaps to provide a java.util.Map based on theRajith Muditha Attapattu2012-05-314-61/+266
| | | | | | | wrapped c++ Variant::Map. Maps returned to the java code are read only. Need to add code to translate a java.util.Map into a Variant::Map git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1344841 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Experimental cpp binding. Adding the swig and support files.Rajith Muditha Attapattu2012-05-2910-0/+614
| | | | | | Adding a connection factor class that loads various implementaitons. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1343747 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA support for stand-alone replication.Alan Conway2012-02-296-48/+175
| | | | | | | | - New management method HaBroker.replicate to enable replication. - qpid-ha tool can enable replication of queues. - qpid-config tool can create queues with replication enabled. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295339 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3832: Fix linking on windowsGordon Sim2012-02-291-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295216 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3832: Restore transport option for connection (as default for urls that ↵Gordon Sim2012-02-295-6/+25
| | | | | | don't specify one explicitly) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295172 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3871 - Added --mgmt-publish switch to the C++ brokerTed Ross2012-02-295-23/+55
| | | | | | | | | Also in this commit: - Fixed a problem with an unused argument in qpid-stat - Cleaned up the recurring timer code in ManagementAgent git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1295075 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Update HA design doc comments on persistence.Alan Conway2012-02-281-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294691 13f79535-47bb-0310-9956-ffa450edef68
* Forgot to add this when checking in changes for QPID-3870.Stephen D. Huston2012-02-271-0/+78
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294284 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Improved command-based qpid-ha tool and ha config option names.Alan Conway2012-02-248-38/+71
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1293397 13f79535-47bb-0310-9956-ffa450edef68
* Generate a correct test_env.ps1 for Windows test runs; modify the ↵Stephen D. Huston2012-02-247-21/+19
| | | | | | python-invoking test scripts to pick up proper settings from test_env.ps1. Also improved run_test.ps1 to not look for an exe whose proper path has been supplied already; allowed ha_test to try to execute. Fixes QPID-3870 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1293340 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix broken distcheck - ha_tests.py not being skipped.Alan Conway2012-02-233-5/+13
| | | | | | | ha_tests.py depends on the python tools directory being available. Modified it to skip the test if it is not (e.g. when running make distcheck) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292937 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2894 - Added ACL stats to qpid-stat and a reload-file action to ↵Ted Ross2012-02-231-29/+33
| | | | | | | | | qpid-config. Ported the ACL tests to use the faster API. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292880 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix error on windows "An operation was attempted on something that ↵Alan Conway2012-02-221-3/+5
| | | | | | is not a socket." git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292587 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed the long dead apr codeAndrew Stitcher2012-02-2211-801/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292524 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3864: 0.16 release tasksAndrew Stitcher2012-02-224-1/+3
| | | | | | | - Some more files missed from distlists - File checked into the wrong place initially git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292518 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: HA logging improvements.Alan Conway2012-02-226-7/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292445 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Test HA replication of LVQ, priority and ring queues.Alan Conway2012-02-222-7/+122
| | | | | | Also fix one bug causing problems with LVQ replication. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292444 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3851 - Unified common CLI options for qpid-config and qpid-stat.Ted Ross2012-02-2215-144/+115
| | | | | | | | | | | | | | | | | | | | Also in this commit: qpid-config was converted to use the messaging-based qmf2 library. It no longer has a dependency on the qmf library. The CLI tests were also ported to the faster library. CLI test time prior to this commit: 2 minutes 12 seconds CLI test time after this commit: 12.5 seconds Other items in qpid-config and qpid-stat: - The deprecated LVQ options (lqv, lqv-no-browse) were removed from qpid-config. - A new option, --lvq-key, was added to qpid-config to support the new LVQ configuration. The docs and tests were updated to match. - qpid-stat was updated so that 'qpid-stat -q <queue-name>' prints full details from the specified queue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292388 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3571: A generic Posix poller implementationAndrew Stitcher2012-02-213-12/+41
| | | | | | | Wired manual selection of poll/epoll implementations into autoconf/cmake. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292066 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3864: Clean up the dist lists. Thanks to Andrew Stitcher for the patch.Justin Ross2012-02-212-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1292054 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3862: Static Trace points for System tap / DtraceAndrew Stitcher2012-02-216-2/+123
| | | | | | | | | | | Added framework to allow static probes in DTRACE_PROBE() format to be added to the qpid code. This will be usable under System Tap for Linux, and DTrace for Solaris and FreeBSD. Also included some initial probes into the low level IO code to see how it performs. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291981 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix missing EXTERN declarations, broke windows build.Alan Conway2012-02-2016-216/+294
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291436 13f79535-47bb-0310-9956-ffa450edef68
* more fixes for compilation under fedora 18, new gccNuno Santos2012-02-173-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245757 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Add HA tests to automake and cmake.Alan Conway2012-02-172-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245706 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA ACL whitespace police.Charles E. Rolke2012-02-176-1192/+1191
| | | | | | No code change. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245660 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove out-of-date generated header in HaBroker.hAlan Conway2012-02-171-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245644 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603 - Added missing files to CMakeLists.txtTed Ross2012-02-171-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245639 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3603: Merge new HA foundations.Alan Conway2012-02-1786-898/+4114
| | | | | | | 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
* missing casts and include to be able to compile under fedora 18Nuno Santos2012-02-162-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1245195 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3841: improve batching of outbound messagesKenneth Anthony Giusti2012-02-151-1/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1244504 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix Logger::instance to work with older versions of boost.Alan Conway2012-02-141-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1244010 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3839: Allow browsers to accept messagesGordon Sim2012-02-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1244002 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3638 - Fixed boost usage problem.Ted Ross2012-02-131-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1243676 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA - Fixed missing return type on Windows stub.Ted Ross2012-02-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1242915 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3773: generate a unique queue name for the internal bridge queues.Kenneth Anthony Giusti2012-02-101-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1242887 13f79535-47bb-0310-9956-ffa450edef68