Starting the Hosting Service Provider (HSP)

A basic system consists of a HostingServiceProvider (Hsp) that consists of a TaskServer and at least 1 Host. The application run on this configuration is a Janet client. These components are started in the following order: 
  1. Hsp
  2. TaskServer
  3. Host[s]
  4. the application.

HostingServiceProvider

To start the Hsp, execute:
java -cp $JANET/lib/janet-system.jar
     -Djava.security.policy=$JANET/policy/policy
      janet.services.Hsp
The policy file policy within janet/policy grants all permissions, and, as such, is used only in testing situations.

For easily constructing a non-trivial HSP network (for testing purposes), there are 2 optional command-line parameters:

  1. the number of TaskServer objects to be started on the same machine (default = 0)
  2. the number of Host objects to be started on the same machine (default = 0).

  3. The additional components, so specified, are instantiated within the same JVM as the Hsp. In a production deployment, one would want no more than 1 TaskServer running on the same machine as the Hsp, and no Hosts.