summaryrefslogtreecommitdiff
path: root/qpid/java/client-api
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4027 Added javadoc, fixed typos, and some bugs.address-refactor2Rajith Muditha Attapattu2012-06-269-38/+223
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1354075 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Made modifications to reflect the changes made to interfaces.Rajith Muditha Attapattu2012-06-2621-82/+291
| | | | | | 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 an experimental Failover Decorator to experiment withRajith Muditha Attapattu2012-06-2619-1362/+2444
| | | | | | | | | | providing high level failover based on "stop-the-world" concept. Added an abstraction for Failover strategy. Renamed the ConnectionStateListener to ConnectionEventListener and added a ConnectionEvent class to notify various connection events. The experimental failover implementation makes use of this. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1354073 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added a README on how to run the example.Rajith Muditha Attapattu2012-06-181-0/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1351373 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added unregister methods for session, sender and receivers.Rajith Muditha Attapattu2012-06-186-6/+64
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1351372 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Renamed the extension interfaces as Internal. These not reallyRajith Muditha Attapattu2012-06-1812-56/+51
| | | | | | | extensions but a set of interfaces used by the internal implementations classes. The packages was also renamed from "ext" to "internal". git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1351370 13f79535-47bb-0310-9956-ffa450edef68
* QPId-4027 Added an example that demonstrates sending/receiving aRajith Muditha Attapattu2012-06-165-25/+67
| | | | | | | String, Map and List message. Fixed several bugs. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1351025 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Renamed the generated JNI wrapper files to use the PrefixRajith Muditha Attapattu2012-06-155-27/+30
| | | | | | | | 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 Tied in the message implementation into the cpp/jniRajith Muditha Attapattu2012-06-155-17/+48
| | | | | | implementation. A bit more cleanup and testing needs to be done. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350710 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Created an AbstractMessageFactory which delegates the creationRajith Muditha Attapattu2012-06-1510-385/+893
| | | | | | | | | | | | | of version and/or implementation specific delegates to a concrete implementation. Created a concrete implementation for 0-10 and the c++/jni implementations. For the time being the c++/jni implementation assumes 0-10 only, hence directly extending the 0-10 impl. Added MessageInternal interface, intended for API impelementors. The MessageFactories implementations provides String, Map and List message support in addition to creating version/implementation specific delegates. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350709 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 The Connection object will provide a reference to theRajith Muditha Attapattu2012-06-152-3/+16
| | | | | | | | | respective MessageFactory that can be used or creating messages or decoding content for messages received. Since a connection object will contain the AMQP version it would be the logical place to provide this reference. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350708 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added an AMQP 0-10 message factory implementation. TheRajith Muditha Attapattu2012-06-153-80/+832
| | | | | | | | | | StringMessage is not really 0-10 specific. When we add AMQP 1.0 support, perhaps we could have a AbstractMessageFactory which contains the common stuff. Added GenericMessageAdapter to be used as a base for all kinds of Message adapters. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350707 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added sub interfaces for Message class to retrieve specificRajith Muditha Attapattu2012-06-156-220/+149
| | | | | | | | | | content types. Added a MessageFactory to create concrete Message objects with given content. It can also decode a generic message object in a specific content type such as String, Map or List. This is useful if you don't want to cast your message into a specific sub interface type. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350706 13f79535-47bb-0310-9956-ffa450edef68
* Added a finally block for deleting the C++ objects when close is calledRajith Muditha Attapattu2012-06-157-87/+154
| | | | | | | to ensure that the underlying c++ objects don't leak. Filled in blank methods and another round of bug fixing. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350704 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added constants FOREVER, IMMEDIATE, SECOND and MINUTE.Rajith Muditha Attapattu2012-06-151-1/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350703 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added extension interfaces for Session, Sender and Receiver.Rajith Muditha Attapattu2012-06-156-0/+631
| | | | | | | | | | Added convinience class that converts java long timeout to the C++ Duration object. Added ReceiverManagementDecorator and SenderManagementDecorator that provides state management and error handling via the decorator pattern for a Receiver and a Sender respectively. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350702 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Cleaned up the exception heirarchy and modified the interfacesRajith Muditha Attapattu2012-06-158-11/+25
| | | | | | | to throw the required exceptions. TODO: Add Java doc to denote type of exceptions that could be thrown. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350701 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Continuing to fill in the blanks for the CPP implementation.Rajith Muditha Attapattu2012-06-155-71/+87
| | | | | | Changed the JNILayerException to extend the MessagingException. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350700 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Experimented with adding common functionality via DecoratorsRajith Muditha Attapattu2012-06-155-0/+837
| | | | | | | | | | | | | | | as opposed to inheritence. ConnectionManagementDecorator and SessionManagementDecorator adds common session/connection management, state management, error handling etc. The decorator approach allows us to add/remove functionality easily and to isolate logic without assuming/depending on base classes like we do with our current client. Added some extension interfaces under the "ext" package that facilitates the implementation of the API. This package is not intended to be visible to the users. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350699 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added MessageEncoding, MessageNotWritable exception classes toRajith Muditha Attapattu2012-06-158-67/+331
| | | | | | | | mnotify encoding/decoding related errors and write operations on Immutable messages. Modified the API classes to include exceptions. Added an Adapter to make a message immutable. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350698 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added the various exception classes for the messaging API.Rajith Muditha Attapattu2012-06-1021-0/+764
| | | | | | | | The structure here closely follows the C++ model. The next step is to incoporate these exceptions into the API classes. More classes may need to be added. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1348684 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Added a toString method to the Message class by using the swigRajith Muditha Attapattu2012-06-102-0/+9
| | | | | | | | | "%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-103-11/+18
| | | | | | | | | | 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-073-7/+19
| | | | | | 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 Added error handling and basic logging for the library onloadRajith Muditha Attapattu2012-06-071-0/+5
| | | | | | 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 JNILayerException to communicate errors occuring in the JNI ↵Rajith Muditha Attapattu2012-06-078-2/+135
| | | | | | | | | code. Added Apache License to the files missing the header. Adding the updated qpid_cpp_jni.jar git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347724 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Changed the typemaps to provide a java.util.Map based on theRajith Muditha Attapattu2012-05-311-1/+0
| | | | | | | 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-40027 Experimental CPP binding. Added a very quick and dirtyRajith Muditha Attapattu2012-05-297-0/+627
| | | | | | implementation as a POC.Can send and receive a message atm. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1343748 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4027 Experimental cpp binding. Adding the swig and support files.Rajith Muditha Attapattu2012-05-291-0/+52
| | | | | | 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-4001 Added the interfaces for review. Kept it in a separate moduleRajith Muditha Attapattu2012-05-166-0/+478
for folks who like to review the code in their editor. Added a client-jms module to move the new destination work and house the new jms work. This makes reviewing a bit easy and also allows the possiblity of the new and old client code to live side by side until we make a decision to archive the old client. At some point we need to trim the common module to contain code that is truly common to both broker and clients. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1339264 13f79535-47bb-0310-9956-ffa450edef68