| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1354075 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
Fixed bugs identified in testing.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1354074 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1351373 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1351372 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1350703 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
"%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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347732 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
types.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347730 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
types.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1347729 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
classes will be removed when the work is completed.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1338485 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
object from a BURL.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1338484 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
just a destination string. Add a method in QpidTopic for creating a
DurableTopic using the "topic" information contained within the object.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1338483 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
final and should be passed in the constructor.Introduced a new class to
hold the data given by the existing address parser. TODO The toString field needs
to be constructed. The intermediate class AddressRaw can be eliminated
with a more clever parser.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1338482 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Node and Link now take all values in the constructor instead of setters
to make it clear that these objects are immutable.
Moved all the address enums into their own classes.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1337208 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1336908 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1336907 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
initialized. All maps/lists returned by them are wrapped with
unmodifiable map/lists. All setter methods will throw an exception once
they are marked read-only.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1336878 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
the Node and Link data structures are populated. Marked member variables
in Link and Node as private. Fixed leading/trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1336444 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Moved the destination syntax stuff into DestinationStringParser.
Each implementation now provides a getType() method to denote if it's a
Queue or Topic rather than carrying it as a member variable.
Made corrections to formatting and leading/trailling spaces.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1336443 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor2@1309768 13f79535-47bb-0310-9956-ffa450edef68
|