summaryrefslogtreecommitdiff
path: root/java/tools
Commit message (Collapse)AuthorAgeFilesLines
* NO-JIRA: Add missing Apache licenses to Java source files; correct ↵Keith Wall2012-07-022-2/+2
| | | | | | positioning of the license wrt to the package statement git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1356257 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3994: trivial changes to the build.xml files to aid people regenerating ↵Robert Gemmell2012-05-131-3/+2
| | | | | | their Eclipse project files using Ant Eclipse following the Ivy related changes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1337925 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 This is a carbon copy of qpid-cpp-benchmark with minorRajith Muditha Attapattu2012-05-091-0/+316
| | | | | | | | | | | | modifications to comment out the broker option (as the URL formats are different) and rearragined the order of args passed. Currently there is an issue of parsing the receiver output. Other than that it works without any changes. We need to move this file as qpid-benchmark and add options to allow running either c++ or jms/java versions or mix and match them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1336280 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Added the c++ equivalent of qpid-send and qpid-receive withRajith Muditha Attapattu2012-05-092-0/+454
| | | | | | identical options. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1336279 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Fixed an error when setting the python path.Rajith Muditha Attapattu2012-05-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1336278 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Made modifications to get the qpid-jms-send, qpid-jms-receiveRajith Muditha Attapattu2012-05-096-878/+978
| | | | | | | scripts working. Corrected formmatting errors and removed leading/trailing spaces. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1336276 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Marked the following files as excutable.Rajith Muditha Attapattu2012-05-093-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1336275 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Handles the stat collecting and reporting module for the jmsRajith Muditha Attapattu2012-04-104-0/+459
| | | | | | | | perf tools housed under the java/tools module. This again closely followed the c++ versions. The Mercury tool has it's own stat and report implementation to facilitate exisitng scripts. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1311678 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 The existing PerfProducer, PerfConsumer and TestControllerRajith Muditha Attapattu2012-04-105-477/+210
| | | | | | | | | were refactored to act more as controllers while the actual sending and receiving is now delegated to the QpidSend and QpidReceive classes. The stat collecting and reporting is now handled by the Report and Statistics classes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1311677 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Refactored existing code in PerfConsumer and PerfProducer toRajith Muditha Attapattu2012-04-102-0/+472
| | | | | | | | extract QpidSend and QpidReceive. These classes closely follow the C++ qpid-send.cpp and qpid-receive.cpp More work needs to be done to make them identical. This is still WIP. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1311676 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Removed the old LatencyTest as it's no longer useful.Rajith Muditha Attapattu2012-04-101-349/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1311675 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Test configuration is now accessed via the TestConfigurationRajith Muditha Attapattu2012-04-102-25/+348
| | | | | | | | | | interface. This would allow the various test tools to easily add/change the configuration mechanism. The existing jvm arg based system is now implemented via the JVMArgConfiguration class. Some tools will prefer program arguments and you could implement a ProgramArgConfiguration class. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1311674 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Renamed existing files as the first step. The existingRajith Muditha Attapattu2012-04-109-0/+0
| | | | | | | | | distributed testing framework is now named Mercury, and the related files are prefixed with that name for easy identification. The existing perf-report was renamed as jms-quick-perf-report, as that is exactly what it does. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1311673 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove test-only and unused connect methodsRobert Gemmell2012-02-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240812 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Encapsulate fields, use private members and accesors (keep ↵Robert Godfrey2012-01-273-27/+27
| | | | | | checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1236867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: add missing licence headers to various files in the java treeRobert Gemmell2011-11-173-0/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1203385 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-3358 Added a controller to coordinate tests run on several jvm's on the ↵Rajith Muditha Attapattu2011-07-207-133/+607
| | | | | | | | | | | | | | | | | 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-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-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
* 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
* Fixed the default value for address.Rajith Muditha Attapattu2011-06-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1131259 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3055Rajith Muditha Attapattu2011-02-144-118/+70
| | | | | | | | | | | | As the first step added system properties for host, port and address and got rid of the jndi lookup. There is also a system property for URL which allows a user to specify a fully fledged URL with various connection options like SSL etc.. If the host & port is specified the URL property is ignored. I also added some documentation in the perf_report.sh suggesting recommended settings for performance testing. These are guidelines only and a prospective user needs to experiment with their environment to fine tune the settings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1070519 13f79535-47bb-0310-9956-ffa450edef68
* Fixed minor errors in the scriptsRajith Muditha Attapattu2010-11-102-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1033592 13f79535-47bb-0310-9956-ffa450edef68
* This is related to rev 1032640Rajith Muditha Attapattu2010-11-085-0/+964
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1032733 13f79535-47bb-0310-9956-ffa450edef68
* Moved the testkit scripts under the tools module.Rajith Muditha Attapattu2010-11-083-0/+396
| | | | | | | | | | I will be moving the source also into the tools module in subsequent commit. The goal is to have all tools in a single location. The perftest script and the testkit script are very good tools for release testing. These scripts will also be used in downstream packages for the same purpose. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1032640 13f79535-47bb-0310-9956-ffa450edef68
* Add the BURL prefix to denote the use of old style binding urls in the prop fileRajith Muditha Attapattu2010-09-091-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995575 13f79535-47bb-0310-9956-ffa450edef68
* Changed README to README.txt throughout the project for consistency. Removed ↵Jonathan Robie2010-06-231-0/+0
| | | | | | gentools/README.txt, which described Velocity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957201 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2599: restore log4j settings files which are not named log4j.xml or ↵Robert Gemmell2010-06-041-0/+28
| | | | | | log4j.properties and so need not be removed completely since they wont be automatically applied by log4j if found on the classpath like the others will git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951419 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2599Rajith Muditha Attapattu2010-05-111-28/+0
| | | | | | | Removing all log4j xml and property files from the code base, except for the ones in test-profile folder and broker/etc folder. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943339 13f79535-47bb-0310-9956-ffa450edef68
* Added a jndi file, README and log4j file needed for testkit.Rajith Muditha Attapattu2010-03-233-0/+216
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@926804 13f79535-47bb-0310-9956-ffa450edef68
* Moved the scripts and config files to the tools module as the Perf Producer ↵Rajith Muditha Attapattu2010-03-042-2/+2
| | | | | | and Consumer are now housed under the tools module. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918790 13f79535-47bb-0310-9956-ffa450edef68
* Added the LatencyTest and PerfTest kit under the tools modules alongside ↵Rajith Muditha Attapattu2009-11-1110-0/+1441
| | | | | | | | | QpidBench. Modified the testkit build.xml to add tools as build dependency as some of the classes in testkit will be using MessageFactory git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834722 13f79535-47bb-0310-9956-ffa450edef68
* Added a message to indicate the producer and consumer have completed the test.Rajith Muditha Attapattu2009-05-251-0/+2
| | | | | | | This can be then greped by any automated to test script to identify the end of a test run. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@778265 13f79535-47bb-0310-9956-ffa450edef68
* Made the various receive variants check that the server queue is empty ↵Rafael H. Schloming2009-02-251-0/+2
| | | | | | before returning null. Also modified AMQQueueBrowser to use receiveNoWait() when browsing queues using 0-10. These changes uncovered numerous second order bugs, mostly in failover. These are also fixed. This fixes QPID-1642 and QPID-1643. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747963 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1645Rajith Muditha Attapattu2009-02-091-1/+1
| | | | | | | | | Added support to specify the sasl_mechs as a space separated list in the connection URL. By default it will use PLAIN. You could provide a list of mechs to support or force to use one GASSAPI or CRAM-MD5 by specifying only that in the connection URL. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@742267 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1479Rajith Muditha Attapattu2009-01-131-11/+54
| | | | | | | This commit contains themodifications done to the perf test classes to use the thread abstraction patch. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@734212 13f79535-47bb-0310-9956-ffa450edef68
* removed incubating from various shell scripts, release artifacts, and READMEsRafael H. Schloming2008-12-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@724948 13f79535-47bb-0310-9956-ffa450edef68
* Appologies for the sudden checkin without notice, close to the release cycle.Rajith Muditha Attapattu2008-11-211-54/+11
| | | | | | | Reverting the changes back. Will attach a patch and commit after the release. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719657 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1479.Rajith Muditha Attapattu2008-11-211-11/+54
| | | | | | | | | | | | | | | For starters I have changed the IoSender.java IoReceiver.java and AMQSession.java#Dispatcher to use the Thread factory to create the threads they require. The ThreadFactory has two implimentations, the default being the java.lang.Threads. The other is the RealtimeThreadFactory which uses reflection to create threads with a specific priority. -Dqpid.thread_factory=<thread_factory_class> will decide which thread factory should be loaded. -Dqpid.rt_thread_priority=<int> specifies the gloabl real time thread priority and defaults to 20. You could also set individual thread priorities by adding the nessacery config+code changes. I have also changed the Testkit and QpidBench to use the Thread factory so you could use them for testing/benchmarking work on RT JVMs. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719628 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1296.Rajith Muditha Attapattu2008-10-231-1/+1
| | | | | | | I missed these two files in the previous commit. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707458 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1339: refactor of low level client API to permit connections to exist ↵Rafael H. Schloming2008-10-091-107/+79
| | | | | | in a disconnected state as well as to provide a central point from which to track session state git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@703208 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1221: added customizable UUID generation and switched the default ↵Rafael H. Schloming2008-08-061-1/+5
| | | | | | strategy to use nameUUIDFromBytes rather than randomUUID git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@683337 13f79535-47bb-0310-9956-ffa450edef68