summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
...
* QPID-3381 Added the class QpidMessageProperties as a place holder for Qpid ↵Rajith Muditha Attapattu2011-08-021-0/+34
| | | | | | specific properties, rather than using string literals all over the code. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1153272 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2899: ensure otherwise unhandled exceptions close the Session with an ↵Robert Gemmell2011-08-022-9/+13
| | | | | | ExecutionException git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1153183 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3263 Applying patch from Weston Price with the following modifications.Rajith Muditha Attapattu2011-08-025-8/+168
| | | | | | | | 1. The test case now extends QpidBrokerTestCase instead of TestCase to ensure that it can run under the automated ant builds. 2. Added an additional case to testIsSameRMMultiCF to ensure that isSameRM() returns false for two XAResources created from two different brokers. 3. Excluded this test from the Java test profiles. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1153164 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3064, QPID-3157: ensure that if the node marker is pointing at the tail ↵Robert Gemmell2011-07-312-2/+38
| | | | | | node when it is removed, the marker is still subsequently able to find new subscriptions at the end of the list git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152633 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3064, QPID-3157: ensure the node for a given Subscription is unlinked ↵Robert Gemmell2011-07-303-99/+527
| | | | | | from the SubscriptionList at the point of removal instead of relying on the list head advancing to do so. Add 'marked node' functionality to the SubscriptionList to provide the Subscription cycling functionality to the queue, allowing the list to tidy itself up fully. Correct corner case behaviour for deleted-but-still-linked tail node in SubscriptionListIterator. Add tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152485 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3339: set the security Subject during the closed() invocation to ↵Robert Gemmell2011-07-301-4/+8
| | | | | | | | | prevent the spurious ACL denies causing occasional test failures from ExternalACLTest under the Java 0.10 profiles Applied patch from Keith Wall<keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152484 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Added a gnuplot script that can be useful in graphing test results.Rajith Muditha Attapattu2011-07-301-0/+42
| | | | | | | | | If the -Dduration options is used with the PerfTestController it will output the results of each iteration to a CSV file. You could use the perf-report.gnu with gnuplot to generated some graphs uisng this CSV file. The script expects the CSV file to be in the same directly (alternative you can modify the script to load it from somewhere else). Also you will need to modify the yrange values to suite the outcome of your test environment. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152415 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Added scripts to faciliate multi host testing.Rajith Muditha Attapattu2011-07-303-0/+387
| | | | | | | | | | 1. The controller starts the PerfTestController that coordinates the testing across multiple producers and consumers on a multi host env. 2. The start-producers and start-consuers starts multiple producers and consumers and also supports a variety of options including starting multiple connections within the same JVM. 3. All 3 scripts comes with -h or -help option to provide details about the various options supported by them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152414 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Modified the run-sub and run-pub scripts to allow program args in ↵Rajith Muditha Attapattu2011-07-302-4/+15
| | | | | | | | addition to jvm args. This allows scripts to pass on varios arguments like a script specific prefix and other arguments that should be private to a particular connection rather than the entire jvm. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152413 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Modified the producer and consumer to support multiple iterations ↵Rajith Muditha Attapattu2011-07-304-71/+187
| | | | | | | | | | | | to ensure we can run the test for longer durations. Also added support for creating unique destinations based on the default destination. This makes it easy to run multiple producers and consumers with their unique queue with little configuration. The code can make use of an externally specified prefix when creating these destinations, there by allowing scripts to provide meaningful names for identifying queues for debuging/diagnostic purposes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152412 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Modified the controller to allow multiple iterations in order to ↵Rajith Muditha Attapattu2011-07-302-12/+146
| | | | | | | | | | | support long durations tests. You could now specify -Duration=<secs> to ask the controller to run the test for atleast that duration. If the system is in the middle of running an iteration when the time is up, it will complete the iteration before ending the test. If a duration is specified the Controller will output the results of each iteration into a CSV file. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152411 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3367: FileUtils improvements. #openFileOrDefaultResource now tries the ↵Robert Gemmell2011-07-214-11/+98
| | | | | | | | override filename in the classpath too, before falling back to the default. Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1149165 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3365: Extend build system to build optional client-plugins.Robert Gemmell2011-07-212-5/+4
| | | | | | Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1149163 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: correct example jar name in client README, update ivy.xml file with ↵Robert Gemmell2011-07-212-2/+2
| | | | | | current version git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1149110 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3255: update management console to remove redundant user management ↵Robert Gemmell2011-07-216-211/+288
| | | | | | functionality, move legacy methods from UserManagement to an extension interface git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1149109 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Added a controller to coordinate tests run on several jvm's on the ↵Rajith Muditha Attapattu2011-07-208-134/+608
| | | | | | | | | | | | | | | | | same host or multiple host machines. 1. The controller registers participants and waits until the desired numbers of producers and consumers join the test. 2. It then coordinates warmup runs between the participants and starts the actual test run. 3. Once the test is done it collects stats and computes averages,max,minetc.. and prints them out. The collector is designed run by itself, but can be run inline with a producer for simplicity. Infact by default the producer will run a controller unless -Dext_controller=true is specified. This is done to ensure that the simple test cases like the per-report script can be run without additional configuration. The code would need a bit of cleanup later on. The current form was done quite quickly as a POC for an urgent task. I will be reviewing the code and making improvements over the comming days. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1148935 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3359: revert testNoFailover to run in same-vm profiles onlyRobert Gemmell2011-07-151-2/+34
| | | | | | Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1147076 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3283: make Authentication Manager pluggable.Robert Gemmell2011-07-1526-764/+667
| | | | | | | | Refactors AuthenticationManager and collaborators to allow of AuthenticationManager to be plugged in from the configuration XML. Change PrincipalDatabaseAuthenticationManager to become a pluggable implementation. This change removes support for the <principal-databases> element within the config.xml. Existing use-cases are supported by the new element <pd-auth-manager/> which enables use of the PDAM implementation. Also resolves QPID-1347. Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1147036 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Simplified the scripts to make it easy to run them.Rajith Muditha Attapattu2011-07-159-164/+124
| | | | | | | | | | | | | 1. Removed the various set-env scripts. Instead in their place I want to introduce profiles that sets the env to run under different environments. Ex from a source checkout or installed rpms. 2. Introduced Profile-run-from-source to set the env to run the tools from an SVN checkout in a linux env. 3. Modified the scripts to use common variable names things like classpaths, java executable, logging config etc.. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146959 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2498: rename mina dep stubs for use in pom generationRobert Gemmell2011-07-142-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146679 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2498: upgrade Mina to 1.1.7.Robert Gemmell2011-07-1413-40/+8
| | | | | | Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146677 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3342: move a previously missed test-only class into the test treeRobert Gemmell2011-07-141-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146676 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2899: exclude test to stop lighting Jenkins up like a christmas tree on ↵Robert Gemmell2011-07-141-0/+3
| | | | | | every commit now that 0.10 is used by default in the test profiles git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146674 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2815: move conversion of logWatch argument into milliseconds into ↵Robert Gemmell2011-07-144-14/+169
| | | | | | Broker, add a unit test for the various argument parsing methods in Main. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146625 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3345: restore/add ability to use sys props to select the ↵Robert Gemmell2011-07-149-37/+335
| | | | | | | | NetworkTransport used to make/accept connections Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146594 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Added the ability to specify a message type (ex bytes, text) and ↵Rajith Muditha Attapattu2011-07-135-59/+129
| | | | | | also calculate standard deviation for the latency sample. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146508 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3310 - Principal/Subject refactoring.Robert Gemmell2011-07-1337-548/+1198
| | | | | | | | | | Refactoring to the connection/session objects to pass the Subject from Authentication tier to Access tier, rather than just the Principal. Change the access-control to be able to make access decisions based on Groups from the Authentication tier whilst retaining support for groups declared within the ACL file itself. Improve unit tests. Applied patch by Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146079 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3269Rajith Muditha Attapattu2011-07-082-9/+35
| | | | | | | | Added a test case to ensure clientID verification works. Excluded from the java broker tests as the java broker does not verify the uniqueness of the session names. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1144532 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3269Rajith Muditha Attapattu2011-07-0810-44/+160
| | | | | | | | | | | In order to verify the uniqueness of the client ID, a dummy session is created using client ID as it's name. This prevents any other connection from using same client ID as the session creation will fail. However this verification is switched off by default in order to preserve backwards compatibility. You need to use -Dqpid.verify_client_id=true switch verification on. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1144531 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3343: refactor test profiles to allow testing within the same JVM for ↵Robert Gemmell2011-07-0786-3764/+374
| | | | | | | | all protocols, remove vm:// transport support and associated forked Mina classes Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143874 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2815: refactor broker startup to present a clean interface interface ↵Robert Gemmell2011-07-0727-744/+1348
| | | | | | | | for starting the broker within an existing application Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143870 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3026: remove incomplete support for multiple ApplicationRegistry ↵Robert Gemmell2011-07-0717-411/+412
| | | | | | | | instances to be active at one time Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143869 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove interface method @overridesRobert Gemmell2011-07-0714-54/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143868 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3342: transition TCP based Mina transport for 0-8/0-9/0-9-1 protocols ↵Robert Gemmell2011-07-0747-1766/+1189
| | | | | | | | over to new IO interface model Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143867 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3342: rationalise the existing 0-10 transport code and introduce new ↵Robert Gemmell2011-07-0714-273/+315
| | | | | | | | NetworkTransport + NetworkConnection abstraction. Decouple IoSender and IoReceiver, initiate their threads after the constructor completes. Applied patch by Keith Wall and myself git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143866 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3341: remove unused/dead transport code and accompanying implementation ↵Robert Gemmell2011-07-0730-5316/+26
| | | | | | | | classes Applied patch by Keith Wall and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1143865 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2720: revert commit from r1142454 due to test failures (note to self, ↵Robert Gemmell2011-07-031-116/+102
| | | | | | commit-then-run = bad) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1142486 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2655: update to allow -run:jpda option to workRobert Gemmell2011-07-031-6/+6
| | | | | | | Applied patch from Danushka Menikkumbura git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1142460 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2720: enable setting an alternative BundleContext to allow the broker ↵Robert Gemmell2011-07-031-102/+116
| | | | | | | | | to use an existing OSGi container instead of starting its own Felix instance Applied patch from Danushka Menikkumbura git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1142454 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3331: Update trunk versions to 0.13 for the next releaseJustin Ross2011-06-307-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1141643 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3324: make the SSL port configurable from the comand lineRobert Gemmell2011-06-301-3/+21
| | | | | | | Applied patch from Danushka Menikkumbura git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1141467 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3194 Added a test case to verify the alternate-exchange property is ↵Rajith Muditha Attapattu2011-06-291-0/+20
| | | | | | correctly parsed and used when declaring exchanges and queues. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1141301 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3302 Excluding the testApplicationProperties test from the 0-8/0-9 code ↵Rajith Muditha Attapattu2011-06-291-0/+1
| | | | | | | | | path. Perhaps this test should be renamed to test_0_10_ApplicationProperties or something similar. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1141258 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA forgot to modify the default value for msg_type in one place.Rajith Muditha Attapattu2011-06-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140807 13f79535-47bb-0310-9956-ffa450edef68
* Merge branch 'perf-tools' into trunkRajith Muditha Attapattu2011-06-281-6/+6
| | | | | | | Conflicts: qpid/java/tools/src/main/java/org/apache/qpid/tools/TestParams.java git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140797 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Changed the type name from BYTE to BYTES.Rajith Muditha Attapattu2011-06-281-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140795 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Added the ability to specify a message type. Currently on bytesRajith Muditha Attapattu2011-06-282-24/+90
| | | | | | | | and text messages are supported. Hoping to add map and object message support in the near future. You could use -Dmsg_type=TEXT|BYTES to specify the type. The default is BYTES. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140793 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3302 Added a test case to cover "x-amqp-0-10.app-id".Rajith Muditha Attapattu2011-06-281-14/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140413 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3302 You can now get and set the app-id in AMQP 0-10 message properties ↵Rajith Muditha Attapattu2011-06-281-1/+13
| | | | | | using "x-amqp-0-10.app-id". git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140412 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3318: ensure the abstract HouseKeepingTask class removes the LogActor ↵Robert Gemmell2011-06-263-0/+342
| | | | | | it adds to the stack git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1139793 13f79535-47bb-0310-9956-ffa450edef68