root / README.md @ 1
History | View | Annotate | Download (866 Bytes)
1 |
# FEUP-SDIS2 |
---|---|
2 |
|
3 |
## How to compile project |
4 |
|
5 |
javac -d out -sourcepath src src/peer/Peer.java src/testapp/TestApp.java |
6 |
|
7 |
## How to run Peer |
8 |
|
9 |
java -classpath out peer.Peer <access_point> <port> |
10 |
java -classpath out peer.Peer <access_point> <port> <referenced_port> |
11 |
java -classpath out peer.Peer <access_point> <port> <referenced_address> <referenced_port> |
12 |
|
13 |
Both <referenced_address> and <referenced_port> are from the same Peer that is already running on the Chord ring |
14 |
|
15 |
## How to run Client |
16 |
|
17 |
File must be in testFiles folder |
18 |
|
19 |
### BACKUP |
20 |
|
21 |
java -classpath out testapp.TestApp <access_point> BACKUP <file_name> <rd> |
22 |
|
23 |
### RESTORE |
24 |
|
25 |
java -classpath out testapp.TestApp <access_point> RESTORE <file_name> |
26 |
|
27 |
### DELETE |
28 |
|
29 |
java -classpath out testapp.TestApp <access_point> DELETE <file_name> |
30 |
|
31 |
### RECLAIM |
32 |
|
33 |
java -classpath out testapp.TestApp <access_point> RECLAIM <reserved_space> |