public class SpawnerService extends java.lang.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.
Modifier and Type | Field and Description |
---|---|
private NodeKey |
nodeKey
The node key.
|
private One2OneChannel |
terminate
Termination channel.
|
Constructor and Description |
---|
SpawnerService(NodeKey nodeKey)
Constructs a new service.
|
Modifier and Type | Method and Description |
---|---|
static SpawnerService |
construct(java.lang.String[] args) |
static void |
main(java.lang.String[] args)
Program entry point.
|
void |
run()
Runs the service.
|
(package private) void |
stop() |
private final NodeKey nodeKey
private final One2OneChannel terminate
public SpawnerService(NodeKey nodeKey)
nodeKey
- the local node key.void stop()
public static SpawnerService construct(java.lang.String[] args)
public static void main(java.lang.String[] args)
args
- the command line arguments. The first one may be the name of an XML file for
initializing the local node.