mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
54 lines
1.7 KiB
Bash
Executable File
54 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
export FAIRMQ_PATH=@FAIRMQ_BIN_DIR@
|
|
|
|
transport="shmem"
|
|
msgSize="1000000"
|
|
|
|
if [[ $1 =~ ^[a-z]+$ ]]; then
|
|
transport=$1
|
|
fi
|
|
|
|
if [[ $2 =~ ^[0-9]+$ ]]; then
|
|
msgSize=$1
|
|
fi
|
|
|
|
SAMPLER="fairmq-ex-region-sampler"
|
|
SAMPLER+=" --id sampler1"
|
|
# SAMPLER+=" --sampling-rate 10"
|
|
SAMPLER+=" --severity debug"
|
|
SAMPLER+=" --msg-size $msgSize"
|
|
SAMPLER+=" --transport $transport"
|
|
SAMPLER+=" --shm-monitor true"
|
|
SAMPLER+=" --chan-name data1"
|
|
SAMPLER+=" --channel-config name=data1,type=push,method=bind,address=tcp://127.0.0.1:7777"
|
|
xterm -geometry 120x60+0+0 -hold -e @EX_BIN_DIR@/$SAMPLER &
|
|
|
|
PROCESSOR="fairmq-ex-region-processor"
|
|
PROCESSOR+=" --id processor1"
|
|
PROCESSOR+=" --severity debug"
|
|
PROCESSOR+=" --transport $transport"
|
|
PROCESSOR+=" --shm-monitor true"
|
|
PROCESSOR+=" --channel-config name=data1,type=pull,method=connect,address=tcp://127.0.0.1:7777"
|
|
PROCESSOR+=" name=data2,type=push,method=bind,address=tcp://127.0.0.1:7778"
|
|
PROCESSOR+=" name=data3,type=push,method=bind,address=tcp://127.0.0.1:7779"
|
|
xterm -geometry 120x60+750+0 -hold -e @EX_BIN_DIR@/$PROCESSOR &
|
|
|
|
SINK1="fairmq-ex-region-sink"
|
|
SINK1+=" --id sink1"
|
|
SINK1+=" --severity debug"
|
|
SINK1+=" --chan-name data2"
|
|
SINK1+=" --transport $transport"
|
|
SINK1+=" --shm-monitor true"
|
|
SINK1+=" --channel-config name=data2,type=pull,method=connect,address=tcp://127.0.0.1:7778"
|
|
xterm -geometry 120x32+1500+0 -hold -e @EX_BIN_DIR@/$SINK1 &
|
|
|
|
SINK2="fairmq-ex-region-sink"
|
|
SINK2+=" --id sink2"
|
|
SINK2+=" --severity debug"
|
|
SINK2+=" --chan-name data3"
|
|
SINK2+=" --transport $transport"
|
|
SINK2+=" --shm-monitor true"
|
|
SINK2+=" --channel-config name=data3,type=pull,method=connect,address=tcp://127.0.0.1:7779"
|
|
xterm -geometry 120x32+1500+500 -hold -e @EX_BIN_DIR@/$SINK2 &
|