Starting the Hosting Service Provider (HSP)

A basic JICOS system consists of a Hosting Service Provider (Hsp), at least 1 Task Server, and at least 1 Host. These components are started in the following order: 
  1. Hsp
  2. [TaskServer]
  3. Host[s]
  4. the application.

Hosting Service Provider

To start the Hsp, execute:
java -cp $JICOS/lib/jicos-system.jar                   \
     -Djava.security.policy=$JICOS/policy/policy   \
      edu.ucsb.cs.jicos.services.Hsp $1
Since the policy file policy within $JICOS/policy grants all permissions, it is used only in testing situations.

A task server is constructed within the same JVM.  This 1 TaskServer often is sufficient.

If $1 is some natural number, such as 4, then that number of host services are constructed within the same JVM. This feature is for testing purposes. For example,

java -cp $JICOS/lib/jicos-system.jar                   \
     -Djava.security.policy=$JICOS/policy/policy   \
      edu.ucsb.cs.jicos.services.Hsp 4

starts an Hsp, a task server, and 4 hosts, all within the same JVM.

In a production deployment, you want 0 Hosts running on the same machine as the Hsp.