Mercurial > hg > Members > tatsuki > Alice
changeset 385:030c4f35393c multicast
add scripts for aquariumFX
author | sugi |
---|---|
date | Wed, 11 Jun 2014 16:04:10 +0900 |
parents | 56d4f93a3921 |
children | aae8e515b0d9 |
files | scripts/aquariumfx.sh |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/aquariumfx.sh Wed Jun 11 16:04:10 2014 +0900 @@ -0,0 +1,26 @@ +#!/bin/bash +if [ $# -ne 2 ]; then + echo "Usage: ./aquarium.sh NODENUM CHILDLENNUM" + exit 1 +fi +max=$1 +child_num=$2 +jar_path=../build/libs/Alice.jar +if [ ! -e $java ]; then + echo "$java not found." + exit 1 +fi + +ruby ./topology/treen.rb $1 $2 > ./topology/tree.dot +dot -Tpng ./topology/tree.dot > ./topology/tree.png +#open ./topology/tree.png +java -version +java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf ./topology/tree.dot -log ./output/manager.log -level fatal > ./output/std_manager.log & + +cnt=0 +while [ $cnt -lt $max ] +do + java -cp $jar_path alice.test.topology.aquarium.fx.StartAquariumFX -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/aquariumfx${cnt}.log -level fatal > ./output/std_aquariumfx${cnt}.log & + cnt=`expr $cnt + 1` +done +wait