diff options
Diffstat (limited to 'java/perftests/etc/testdefs/Topic-Persistence.js')
-rw-r--r-- | java/perftests/etc/testdefs/Topic-Persistence.js | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/java/perftests/etc/testdefs/Topic-Persistence.js b/java/perftests/etc/testdefs/Topic-Persistence.js new file mode 100644 index 0000000000..fd92560fc3 --- /dev/null +++ b/java/perftests/etc/testdefs/Topic-Persistence.js @@ -0,0 +1,70 @@ +var duration = 30000; +var topicName = "topic://amq.topic/?routingkey='testTopic'"; + +var jsonObject = { + _tests: [ + { + "_name": "Topic persistence", + "_iterations": [ + // note that we use _durableSubscription (the JaveBeans property name) + // rather than _isDurableSubscription (the field name) + { + "_deliveryMode": 1, + "_durableSubscription": false + }, + { + "_deliveryMode": 2, + "_durableSubscription": true + } + ], + "_clients": [ + { + "_name": "producingClient", + "_connections":[ + { + "_name": "connection1", + "_factory": "connectionfactory", + "_sessions": [ + { + "_sessionName": "session1", + "_producers": [ + { + "_name": "Producer", + "_destinationName": topicName, + "_maximumDuration": duration, + "_startDelay": 2000 // gives the consumers time to implicitly create the topic + } + ] + } + ] + } + ] + } + ] + .concat(QPID.times(10, + { + "_name": "consumingClient-__INDEX", + "_connections":[ + { + "_name": "connection1", + "_factory": "connectionfactory", + "_sessions": [ + { + "_sessionName": "session1", + "_consumers": [ + { + "_name": "Consumer-__INDEX", + "_destinationName": topicName, + "_isTopic": true, + "_maximumDuration": duration, + } + ] + } + ] + } + ] + }, + "__INDEX")) + }] +}; + |