There are 3 main modules, cyclon, tman, and search, as well as a common module. You can run experiments on the cyclon module or the search module.
Install git, maven and a java SDK.
I recommend you fork this repo on github. But if you don't want to, then just clone it: git clone https://github.com/jimdowling/id2210-vt13.git
cd id2210-vt13 mvn clean install
The search module specifies a kompics experiment in the main experiment. You can execute the main for the search program by using the assembly plugin on the search project to generate a jar file containing all code:
cd search mvn assembly:assembly java -jar target/id2210-search-1.0-SNAPSHOT-jar-with-dependencies.jar
The REST API for the search module contains 2 operations:
- Search for an entry
- http://127.0.1.1:9999/1/1/search-XXX where XXX is the search string
- Add an entry
- http://127.0.1.1:9999/1/1/add-XXX-YYY where XXX is the new entry and YYY is the id of the new entry
Note that the IP address in the URL might be slightly different - it might be localhost or 127.0.0.1 depending on your OS. Check in the first lines printed out when running the program.