Skip to content

User Guide

This tutorial explains how to use the SkyProto prototype to perform .

Prerequisites

  • Git
  • Gradle
  • Java JDK-19

To install the correct version of Gradle and Java, you can use the bash script ./java_gradle_installer.sh. We do not guarantee the functionality of this script.

Configuration

To launch the prototype, you need to follow these steps:

  • Write an agent in the src/main/java/skydata/agents or use the SKD class (generic class for a SkyData).
  • Write a behaviour or use those available in the src/main/java/skydata/behaviour folder.
  • Write a YAML configuration file according to the behaviours and agents defined.

Note: To write these files, refer to the following pages:

Compilation

Once these files have been written, use the gradle build command to compile all the files.

You will get two output files:

  • centralized.jar: Manages the central server allowing each harbour to declare itself and retrieve the list of harbours.
  • platform.jar: Manages a particular harbour.

Execution

Execution takes place in two stages:

  1. Launch the central server centralized.jar and ensure that it is accessible from the other servers.
  2. Then launch as many harbours as you like platform.jar.

To launch the central server, use the command:

java -jar centralized.jar

To launch a harbour, use the command:

java -cp platform.jar:libs/* skydata.PhysicalHostInter <configuration file> <delay between announce to central and fetch>