Mercurial > hg > Database > Alice
annotate scripts/aquarium.sh @ 605:b7eedaa38aeb dispose
close
author | suruga |
---|---|
date | Wed, 19 Apr 2017 19:19:50 +0900 |
parents | 2a8440684441 |
children | f05a89484ec1 |
rev | line source |
---|---|
107 | 1 #!/bin/bash |
181 | 2 if [ $# -ne 2 ]; then |
3 echo "Usage: ./aquarium.sh NODENUM CHILDLENNUM" | |
4 exit 1 | |
5 fi | |
107 | 6 max=$1 |
7 child_num=$2 | |
180
481dab56c3dc
aquarium can execute on mountain lion (with java 1.6)
e095732
parents:
173
diff
changeset
|
8 java=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java |
348 | 9 jar_path=../build/libs/Alice.jar |
181 | 10 if [ ! -e $java ]; then |
11 echo "$java not found." | |
12 exit 1 | |
13 fi | |
14 | |
107 | 15 ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot |
109 | 16 dot -Tpng ./topology/tree.dot > ./topology/tree.png |
133 | 17 #open ./topology/tree.png |
180
481dab56c3dc
aquarium can execute on mountain lion (with java 1.6)
e095732
parents:
173
diff
changeset
|
18 $java -version |
348 | 19 $java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level debug > ./output/std_manager.log & |
107 | 20 |
21 cnt=0 | |
22 while [ $cnt -lt $max ] | |
23 do | |
348 | 24 $java -cp $jar_path alice.test.topology.aquarium.FishMovementTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/aquarium${cnt}.log -level debug > ./output/std_aquarium${cnt}.log & |
107 | 25 cnt=`expr $cnt + 1` |
26 done | |
27 wait |