summaryrefslogtreecommitdiff
path: root/qpid/java/tools/src/main
Commit message (Collapse)AuthorAgeFilesLines
* QPID-6481: Move java source tree to top levelAlex Rudyy2015-04-1526-6511/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1673693 13f79535-47bb-0310-9956-ffa450edef68
* add missing licence headerRobert Gemmell2015-03-051-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1664309 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6158: Close consumer session when 'closeConsumers' argument is ↵Alex Rudyy2014-11-131-1/+1
| | | | | | specified in order to stop the dispatcher thread git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1639375 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6158: Stress test utilities for testing of java broker REST and JMX ↵Alex Rudyy2014-10-233-0/+1148
| | | | | | interfaces git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1633860 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6158: Add sample utility to help to perform stress testing of brokerAlex Rudyy2014-10-162-0/+449
| | | | | | The utility was originally implemented by Robbie Gemmell git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1632318 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6052 : Use ADDR addresses for JMSDestination on incoming messages in ↵Robert Godfrey2014-08-283-10/+7
| | | | | | 0-9-1 when the address mode is ADDR git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1621149 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5993 : [Java] Address issues identified by FindbugsRobert Godfrey2014-08-131-13/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1617716 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5980: javadoc fixups continueRobert Gemmell2014-08-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1616811 13f79535-47bb-0310-9956-ffa450edef68
* 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@1356257 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@1336276 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@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@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@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@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@1311674 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3941 Renamed existing files as the first step. The existingRajith Muditha Attapattu2012-04-105-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@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@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@1236867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: add missing licence headers to various files in the java treeRobert Gemmell2011-11-172-0/+40
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1203385 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@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@1152411 13f79535-47bb-0310-9956-ffa450edef68
* Merge branch 'perf' into trunkRajith Muditha Attapattu2011-07-206-115/+588
| | | | | | | Conflicts: qpid/java/tools/bin/perf-report git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1148935 13f79535-47bb-0310-9956-ffa450edef68
* Merge branch 'QPID-3265' into trunkRajith Muditha Attapattu2011-07-134-55/+126
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@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@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@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@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@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@1131259 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3055Rajith Muditha Attapattu2011-02-142-61/+39
| | | | | | | | | | | | 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@1070519 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@1032733 13f79535-47bb-0310-9956-ffa450edef68
* Added the LatencyTest and PerfTest kit under the tools modules alongside ↵Rajith Muditha Attapattu2009-11-116-0/+1212
| | | | | | | | | 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@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@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@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@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@734212 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@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@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@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@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@683337 13f79535-47bb-0310-9956-ffa450edef68
* Profiling driven changes:Rafael H. Schloming2008-08-051-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - made AMQShortString cache the toString() value - added static initializer to IoTransport to disable use of pooled byte buffers - modified IoSender to permit buffering - removed OutputHandler and eliminated intermediate Frame generation between Disassembler and Sender<ByteBuffer> (IoSender) - made Disassembler take advantage of IoSender's buffering - removed Header and Data as distinct protocol events, added Header and Body members to MessageTransfer - modified Assembler and Disassembler to decode/encode Header and Data directly to/from MessageTransfer - modified Disassembler to only write data if encoding of headers is successful - added Strings.toUTF8(String) -> byte[] to do proper UTF-8 encoding that is also fast for 7-bit ascii - modified JMSTextMessage to use the Strings.toUTF8 - modified QpidBench to only generate 7-bit ascii when using TextMessage git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@682887 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1215 : Replaced use of FileReader with FileInputStreamMartin Ritchie2008-08-041-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@682309 13f79535-47bb-0310-9956-ffa450edef68
* improved usageRafael H. Schloming2008-08-011-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@681674 13f79535-47bb-0310-9956-ffa450edef68
* added benchmark tool for java native + jms APIsRafael H. Schloming2008-08-011-0/+884
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@681666 13f79535-47bb-0310-9956-ffa450edef68
* Addition of tools directory for various Qpid Java toolsMartin Ritchie2008-07-041-0/+200
The first too JNDICheck allows the contents of a JNDI properties file to be parsed and presented as JNDI will process it. Handly for validating the parsing of a ConnectionURL git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674102 13f79535-47bb-0310-9956-ffa450edef68