root / README
History | View | Annotate | Download (1.47 KB)
1 | 1 | up20150476 | TO COMPILE: |
---|---|---|---|
2 | |||
3 | ./demo_compile.sh |
||
4 | |||
5 | Note: Don't forget to start rmiregistry before using the application. |
||
6 | |||
7 | TO RUN: |
||
8 | |||
9 | To start each peer: |
||
10 | |||
11 | ./demo_peer.sh <PeerId> |
||
12 | |||
13 | Use the demo scripts to run (demo_*.sh files): |
||
14 | - Note: Due to the properties of RMI, you must only interact with peers running on the local machine. |
||
15 | |||
16 | ./demo_*.sh <PeerId> |
||
17 | |||
18 | - BACKUP, with replication degree 1, 3 and 20, for both a big(50 chunks) and small(3 chunks) file. |
||
19 | - Files: |
||
20 | - demo_backup_small_rd1.sh |
||
21 | - demo_backup_small_rd3.sh |
||
22 | - demo_backup_small_rd20.sh |
||
23 | - demo_backup_big_rd1.sh |
||
24 | - demo_backup_big_rd3.sh |
||
25 | - demo_backup_big_rd20.sh |
||
26 | |||
27 | - BACKUPENH, with replication degrre 1, for the aforementioned big and small files. |
||
28 | - Files: |
||
29 | - demo_backupenh_small.sh |
||
30 | - demo_backupenh_big.sh |
||
31 | |||
32 | - RESTORE, the aforementioned big and small files. |
||
33 | - Files: |
||
34 | - demo_restore_small.sh |
||
35 | - demo_restore_big.sh |
||
36 | |||
37 | - RESTOREENH, the aforementioned big and small files. |
||
38 | - Note: As mentioned in the report, this enhancement does not work if the peers are located in different computers, due to the properties of RMI. To test, only run in a single computer |
||
39 | - Files: |
||
40 | - demo_restoreenh_small.sh |
||
41 | - demo_restoreenh_big.sh |
||
42 | |||
43 | - DELETE, the aforementioned big and small files. |
||
44 | - Files: |
||
45 | - demo_delete_small.sh |
||
46 | - demo_delete_big.sh |
||
47 | |||
48 | - RECLAIM, for any of the peers: |
||
49 | |||
50 | ./demo_reclaim.sh <PeerId> <DiskSpace> |
||
51 | |||
52 | - STATE, for any of the peers: |
||
53 | |||
54 | ./demo_state.sh <PeerId> |
||
55 | |||
56 | |||
57 | |||
58 | |||
59 | For testing with custom arguments, use the files in the "scripts" folder. |
||
60 |