mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
BREAKING CHANGE Due to a lack of users, we remove the experimental code. The latest implementation can be found in release v1.4.56. This does not mean it will never be picked up again, but for now there are no plans.
35 lines
1.3 KiB
Bash
Executable File
35 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
export FAIRMQ_PATH=@FAIRMQ_BIN_DIR@
|
|
|
|
msgSize="1000000"
|
|
|
|
if [[ $1 =~ ^[0-9]+$ ]]; then
|
|
msgSize=$1
|
|
fi
|
|
|
|
READOUT="fairmq-ex-readout-readout"
|
|
READOUT+=" --id readout1"
|
|
READOUT+=" --msg-size $msgSize"
|
|
READOUT+=" --channel-config name=rb,type=pair,method=bind,address=tcp://localhost:7777,transport=shmem"
|
|
xterm -geometry 80x23+0+0 -hold -e @EX_BIN_DIR@/$READOUT &
|
|
|
|
BUILDER="fairmq-ex-readout-builder"
|
|
BUILDER+=" --id builder1"
|
|
BUILDER+=" --output-name bs"
|
|
BUILDER+=" --channel-config name=rb,type=pair,method=connect,address=tcp://localhost:7777,transport=shmem"
|
|
BUILDER+=" name=bs,type=pair,method=connect,address=tcp://localhost:7778,transport=shmem"
|
|
xterm -geometry 80x23+500+0 -hold -e @EX_BIN_DIR@/$BUILDER &
|
|
|
|
SENDER="fairmq-ex-readout-sender"
|
|
SENDER+=" --id sender1"
|
|
SENDER+=" --input-name bs"
|
|
SENDER+=" --channel-config name=bs,type=pair,method=bind,address=tcp://localhost:7778,transport=shmem"
|
|
SENDER+=" name=sr,type=pair,method=connect,address=tcp://localhost:7779,transport=zeromq"
|
|
xterm -geometry 80x23+1000+0 -hold -e @EX_BIN_DIR@/$SENDER &
|
|
|
|
RECEIVER="fairmq-ex-readout-receiver"
|
|
RECEIVER+=" --id receiver1"
|
|
RECEIVER+=" --channel-config name=sr,type=pair,method=bind,address=tcp://localhost:7779,transport=zeromq"
|
|
xterm -geometry 80x23+1500+0 -hold -e @EX_BIN_DIR@/$RECEIVER &
|