Starting a TaskServer

To start the TaskServer, execute:
java -cp $JANET/lib/janet-system.jar
     -Djava.security.policy=$JANET/policy/policy
      janet.services.TaskServer <hsp-machine>
The TaskServer registers with the Hsp on the machine whose domain name is <hsp-machine>

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 Janet Hsp network (for testing purposes), there is an optional command-line parameter (following <hsp-machine>: the number of Host objects to be started on the same machine (default = 0). The additional Host objects, so specified, are instantiated within the same JVM as the TaskServer. In a production deployment, one probably would not want any Host objects running on the same machine as a TaskServer; both Hosts & TaskServer are intended to maximally utilize a machine's resources.