diff options
| author | Alex Rudyy <orudyy@apache.org> | 2015-04-15 09:47:28 +0000 |
|---|---|---|
| committer | Alex Rudyy <orudyy@apache.org> | 2015-04-15 09:47:28 +0000 |
| commit | 0a0baee45ebcff44635907d457c4ff6810b09c87 (patch) | |
| tree | 8bfb0f9eddbc23cff88af69be80ab3ce7d47011c /qpid/java/perftests/etc/testdefs/Topic-NumberOfTopics.js | |
| parent | 54aa3d7070da16ce55c28ccad3f7d0871479e461 (diff) | |
| download | qpid-python-0a0baee45ebcff44635907d457c4ff6810b09c87.tar.gz | |
QPID-6481: Move java source tree to top level
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1673693 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/perftests/etc/testdefs/Topic-NumberOfTopics.js')
| -rw-r--r-- | qpid/java/perftests/etc/testdefs/Topic-NumberOfTopics.js | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/qpid/java/perftests/etc/testdefs/Topic-NumberOfTopics.js b/qpid/java/perftests/etc/testdefs/Topic-NumberOfTopics.js deleted file mode 100644 index 811f8e3a07..0000000000 --- a/qpid/java/perftests/etc/testdefs/Topic-NumberOfTopics.js +++ /dev/null @@ -1,95 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ -var jsonObject = { - _tests:[] -}; - -var duration = 30000; -var topicName = "topic://amq.topic/?routingkey='testTopic.__INDEX'"; - -var numbersOfTopics = [1, 10, 50, 100]; - -// Each test has n pairs of producers and consumers, each with a different topic - -for(i=0; i < numbersOfTopics.length ; i++) -{ - var numberOfTopics = numbersOfTopics[i]; - var test = { - "_name": numberOfTopics, - "_clients": - QPID.times(numberOfTopics, - { - "_name": "producingClient-__INDEX", - "_connections":[ - { - "_name": "connection1", - "_factory": "connectionfactory", - "_sessions": [ - { - "_sessionName": "session1", - "_acknowledgeMode": 0, - "_producers": [ - { - "_name": "Producer-__INDEX", - "_destinationName": topicName, - "_isTopic": true, - "_deliveryMode": 1, - "_maximumDuration": duration, - "_startDelay": 2000 // gives the consumers time to implicitly create the topic - } - ] - } - ] - } - ] - }, - "__INDEX") - .concat( - QPID.times(numberOfTopics, - { - "_name": "consumingClient-__INDEX", - "_connections":[ - { - "_name": "connection1", - "_factory": "connectionfactory", - "_sessions": [ - { - "_sessionName": "session1", - "_acknowledgeMode": 0, - "_consumers": [ - { - "_name": "Consumer-__INDEX", - "_destinationName": topicName, - "_isTopic": true, - "_maximumDuration": duration - } - ] - } - ] - } - ] - }, - "__INDEX")) - }; - - jsonObject._tests= jsonObject._tests.concat(test); -} - |
