To use the system please use the following scripts.
This script will launch the four required servers then launch a middler and connect it to them. [local]
will indicate if the system is hosted locally, if not the script will distribute the system over 5 hardcoded hosts in it.
./run_system.sh [local]
Note: this script uses the following scripts to do its work, so it would have similar side effects (it might kill processes).
./clear_ports.sh
./make_all.sh
cd Server/
./run_server.sh <port> <name>
Note: this script will kill any process listening on the specified port before launching the server.
cd Middlware/
./run_middleware.sh
[<hostname of Flights server>='localhost']
[<hostname of Rooms server>='localhost']
[<hostname of Cars server>='localhost]
[<hostname of Customers server>='localhost]
[<port of Flights server>=54002]
[<port of Rooms server>=54003]
[<port of Cars server>=54004]
[<port of Customers server>=54005]
Note: this script will kill any process listening on port 54006 before launching the middlware.
cd Client/
./run_client.sh
[<middleware_hostname>='localhost']
[<middleware_port>=54006]
cd Client/
./run_teseter_client.sh
[<middleware_hostname>='localhost']
[<middleware_port>=54006]
[<x>=v]: optional parameter with default value v.
<x>: required parameter.
```