FreePastry Demo
At the end of the first lecture on "Distributed Hash Tables", a simple FreePastry-based application has been demonstrated. To run the example application you need the FreePastry library, which can be downloaded from http://freepastry.org/FreePastry/FreePastry-2.0.jar. Additionally, Java SE available from http://java.sun.com/javase/downloads/ is required as well.
MyApplication
The example application shown in the lecture is available here: [Source Code] [Binary (JAR)]. The application can run either with real TCP/UDP sockets or over an emulated network. See below how to run the application:
Using real TCP/UDP sockets:
java -cp MyApplication.jar;FreePastry-2.0.jar test.MyApplicationTest
-nodes 5 -protocol socket
Over an emulated network:
java -cp MyApplication.jar;FreePastry-2.0.jar test.MyApplicationTest
-nodes 5 -protocol direct

Figure 1: FreePastry Example Application
