Project developed by:
Martim Silva (motapinto)
José Guerra (LockDownPT)Any problems?
Start an Issue please.
Disclaimer - This repository was created for educational purposes and we do not take any responsibility for anything related to its content. You are free to use any code or algorithm you find, but do so at your own risk.
The RMI is created programmatically on the peer 1, thus the peer 1 must start before all the others.
java -jar McastSnooper.jar 224.0.0.0:4445 224.0.0.1:4446 224.0.0.2:4447
Run compile.sh in the root of the project, the output of the compile will be found on the build folder
./compile.sh
./peer.sh <Version> <Id> <serviceName> <MCip> <MCport> <MDBip> <MDBport> <MDRip> <MDRport>
example:
./peer.sh 1.0 1 remoteName 224.0.0.0 4445 224.0.0.1 4446 224.0.0.2 4447
./test.sh <serviceName> <operation> <operators>
./test.sh remoteName BACKUP ../TestFiles/Teste.png 3
./test.sh remoteName RESTORE ../TestFiles/Teste.png
./test.sh remoteName DELETE ../TestFiles/Teste.png
./test.sh remoteName RECLAIM 0
./test.sh remoteName STATE