From 2e4aa8f73239e09687fcd8955b8e4ed120672921 Mon Sep 17 00:00:00 2001 From: Someone Date: Sun, 9 Jun 2013 16:09:29 +0200 Subject: [PATCH] more runscripts --- runJMS.sh | 28 +++++++++------------------- runJMSPizzaria.sh | 10 ++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100755 runJMSPizzaria.sh diff --git a/runJMS.sh b/runJMS.sh index 3e64720..9294948 100755 --- a/runJMS.sh +++ b/runJMS.sh @@ -16,27 +16,17 @@ mvn exec:java -Dexec.mainClass="org.apache.activemq.console.Main" -Dexec.args="s # wait for broakers to start -sleep 30 +sleep 120 +echo "*** continuing launch process ***" +echo "*** continuing launch process ***" +echo "*** continuing launch process ***" +echo "*** continuing launch process ***" +echo "*** continuing launch process ***" # Run Groupgui -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.group.GroupAgent" -Dexec.args="JMS" +mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.group.GroupAgent" -Dexec.args="JMS" & #run pizzeria1 -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.pizzeria.PizzeriaAgent" -Dexec.args="JMS tcp://localhost:61621?jms.prefetchPolicy.all=1" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.waiter.WaiterAgent" -Dexec.args="JMS tcp://localhost:61621?jms.prefetchPolicy.all=1 1" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.waiter.WaiterAgent" -Dexec.args="JMS tcp://localhost:61621?jms.prefetchPolicy.all=1 2" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.cook.CookAgent" -Dexec.args="JMS tcp://localhost:61621?jms.prefetchPolicy.all=1 3" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.cook.CookAgent" -Dexec.args="JMS tcp://localhost:61621?jms.prefetchPolicy.all=1 4" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.driver.DriverAgent" -Dexec.args="JMS tcp://localhost:61621?jms.prefetchPolicy.all=1 5" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.driver.DriverAgent" -Dexec.args="JMS tcp://localhost:61621?jms.prefetchPolicy.all=1 6" & - -#run pizzeria2 -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.pizzeria.PizzeriaAgent" -Dexec.args="JMS tcp://localhost:61622?jms.prefetchPolicy.all=1" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.waiter.WaiterAgent" -Dexec.args="JMS tcp://localhost:61622?jms.prefetchPolicy.all=1 1" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.waiter.WaiterAgent" -Dexec.args="JMS tcp://localhost:61622?jms.prefetchPolicy.all=1 2" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.cook.CookAgent" -Dexec.args="JMS tcp://localhost:61622?jms.prefetchPolicy.all=1 3" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.cook.CookAgent" -Dexec.args="JMS tcp://localhost:61622?jms.prefetchPolicy.all=1 4" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.driver.DriverAgent" -Dexec.args="JMS tcp://localhost:61622?jms.prefetchPolicy.all=1 5" & -mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.driver.DriverAgent" -Dexec.args="JMS tcp://localhost:61622?jms.prefetchPolicy.all=1 6" & - +./runJMSPizzaria.sh "tcp://localhost:61621?jms.prefetchPolicy.all=1" +./runJMSPizzaria.sh "tcp://localhost:61622?jms.prefetchPolicy.all=1" diff --git a/runJMSPizzaria.sh b/runJMSPizzaria.sh new file mode 100755 index 0000000..94a0a66 --- /dev/null +++ b/runJMSPizzaria.sh @@ -0,0 +1,10 @@ +#!/bin/bash +echo "running pizzaria: $1" + +mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.pizzeria.PizzeriaAgent" -Dexec.args="JMS $1" & +mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.waiter.WaiterAgent" -Dexec.args="JMS $1 1" & +mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.waiter.WaiterAgent" -Dexec.args="JMS $1 2" & +mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.cook.CookAgent" -Dexec.args="JMS $1 3" & +mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.cook.CookAgent" -Dexec.args="JMS $1 4" & +mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.driver.DriverAgent" -Dexec.args="JMS $1 5" & +mvn exec:java -Dexec.mainClass="at.ac.tuwien.sbc.valesriegler.driver.DriverAgent" -Dexec.args="JMS $1 6" & -- 2.43.0