To run this project, please have the RAC set up. The setup involves having a master, slave, client and administrator client.
- The master is the 'server' of the application that gathers survey results and coordinates processes between slaves.
- The slaves are individual systems that perform the required computations as instructed by the master.
- The client fills in survey questions for analysis.
- The administrator client has extended privileges to trigger correlation calculations, view and list historical correlation data.
To run the project on the Cybera RAC:
- Add the folder
HistoricalCorrelationsinto the project directory. - Add the file
SurveyEntries.txtinto the project directory. Optionally, you can use a pre-populated SurveyEntries.txt file. - Start by running the 'slave' machine in the JAR
CPSC441FinalProject-Slave.jar. The slave application must be run before the master or client/admin runs.
- java -jar CPSC441-FinalProjectSlave.jar
- Run the 'master' machine in the JAR
CPSC441FinalProject-Master.jar. The master application must be run before the client or admin runs.
- java -jar CPSC441-FinalProjectMaster.jar
- Both the 'client' and 'admin' applications can be used in no particular order at this point. These instructions will demonstrate running 'client' first. To run the client, run the JAR
CPSC441-FinalProjectUser.jar.
- java -jar CPSC441-FinalProjectUser.jar
- Once the client starts, please enter your name.
- A survey will appear. You may select more than one answer for each question (and are encouraged to do so). Please enter the the survey answers, delimited by a space. For example, enter
Python Javato select the choices Python and Java respectively. - To run the admin, run the JAR
CPSC441-FinalProjectAdmin.jar
- java -jar CPSC441-FinalProjectAdmin.jar
- The admin has several options. Type
helpto view all options. Typecalculateto begin the correlation algorithm. Please be advised that the admin can specify either they want correlation scores for 2-tuples or 3-tuples, by entering the number of tuples they want by entering a space aftercalculatefollowed by the number. For instance, if you want calculations for 3-tuples, you would entercalculate 3.
NOTE: You can specify the IP address of the server can connect to by entering it into the command line arguments. If no argument is entered, localhost is chosen by default.
For extra documenation you may view our github page at: https://github.com/ryan-holt/CPSC441FinalProject