CSP for Java
(JCSP) 1.1-rc4

org.jcsp.net.remote
Class SpawnerService

java.lang.Object
  extended by org.jcsp.net.remote.SpawnerService
All Implemented Interfaces:
CSProcess

public class SpawnerService
extends Object
implements CSProcess

Services requests from RemoteProcess proxies to start up child JVMs running the actual processes.

If started from the command line, it will use the XML config file specified by the first command parameter. If no file is given it will try and use JCSPNetSpawnerService.xml to initialize the local node. Alternatively it can be started programmatically and the caller must take responsibility for initializing the node.

Author:
Quickstone Technologies Limited

Constructor Summary
SpawnerService(NodeKey nodeKey)
          Constructs a new service.
 
Method Summary
static SpawnerService construct(String[] args)
           
static void main(String[] args)
          Program entry point.
 void run()
          Runs the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpawnerService

public SpawnerService(NodeKey nodeKey)
Constructs a new service.

Parameters:
nodeKey - the local node key.
Method Detail

run

public void run()
Runs the service.

Specified by:
run in interface CSProcess

construct

public static SpawnerService construct(String[] args)

main

public static void main(String[] args)
Program entry point.

Parameters:
args - the command line arguments. The first one may be the name of an XML file for initializing the local node.

CSP for Java
(JCSP) 1.1-rc4

Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.