summaryrefslogtreecommitdiff
path: root/java/perftests/bin
diff options
context:
space:
mode:
authorRobert Greig <rgreig@apache.org>2006-12-29 18:37:34 +0000
committerRobert Greig <rgreig@apache.org>2006-12-29 18:37:34 +0000
commit604007abfdc313840559d43958ada2aa6be77fab (patch)
tree80e14defe2d3ef4ceb30efa12997fff86fa3bf91 /java/perftests/bin
parentfa857787a62718cc1c9b9e2a4d49a2b867301fa4 (diff)
downloadqpid-python-604007abfdc313840559d43958ada2aa6be77fab.tar.gz
QPID-232 Created a simple module and added the topic test
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@491072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/perftests/bin')
-rwxr-xr-xjava/perftests/bin/run_many.sh30
-rwxr-xr-xjava/perftests/bin/setupclasspath.sh9
-rwxr-xr-xjava/perftests/bin/topicListener.sh25
-rwxr-xr-xjava/perftests/bin/topicPublisher.sh23
4 files changed, 87 insertions, 0 deletions
diff --git a/java/perftests/bin/run_many.sh b/java/perftests/bin/run_many.sh
new file mode 100755
index 0000000000..cca2ffec21
--- /dev/null
+++ b/java/perftests/bin/run_many.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# 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.
+#
+
+
+# args:
+# <number of processes to start>
+# <name of run>
+# <command ro run>
+
+for i in `seq 1 $1`; do
+ $3 >$2.$i.out 2>>$2.err &
+ echo $! > $2.$i.pid
+done;
diff --git a/java/perftests/bin/setupclasspath.sh b/java/perftests/bin/setupclasspath.sh
new file mode 100755
index 0000000000..a660392e77
--- /dev/null
+++ b/java/perftests/bin/setupclasspath.sh
@@ -0,0 +1,9 @@
+if [ -z $QPID_HOME ] ; then
+ echo "QPID_HOME must be set"
+ exit
+fi
+CP=$QPID_HOME/lib/qpid-incubating.jar:../target/classes
+
+if [ `uname -o` == "Cygwin" ] ; then
+ CP=`cygpath --path --windows $CP`
+fi
diff --git a/java/perftests/bin/topicListener.sh b/java/perftests/bin/topicListener.sh
new file mode 100755
index 0000000000..454efefe7d
--- /dev/null
+++ b/java/perftests/bin/topicListener.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+#
+# 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.
+#
+
+
+# XXX -Xmx512m -Xms512m -XX:NewSize=150m
+. ./setupclasspath.sh
+echo $CP
+$JAVA_HOME/bin/java -cp $CP -Damqj.logging.level="INFO" org.apache.qpid.topic.Listener $*
diff --git a/java/perftests/bin/topicPublisher.sh b/java/perftests/bin/topicPublisher.sh
new file mode 100755
index 0000000000..cc3a8736cc
--- /dev/null
+++ b/java/perftests/bin/topicPublisher.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+# 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.
+#
+
+# XXX -Xmx512m -Xms512m -XX:NewSize=150m
+. ./setupclasspath.sh
+$JAVA_HOME/bin/java -cp $CP -Damqj.logging.level="INFO" org.apache.qpid.topic.Publisher $*