Package org.jcsp.net.remote
Class ChildProcess
- java.lang.Object
-
- org.jcsp.net.remote.ChildProcess
-
public class ChildProcess extends java.lang.Object
For use by the infrastructure only.
Process launcher for starting a child JVM. This class should not be used directly. On loading the process to be started will be retrieved from the main
SpawnerService
JVM and run. The .NET node will be initialized using the factory supplied by the spawner. This may be either the platform's default factory or one supplied to the proxyChildProcess
processes.The process started should not call
System.exit
to terminate. If it does aRemoteProcessFailedException
will be raised as an abrupt exit cannot be distinguished from a .NET infrastructure failure.If the process raises an exception, this will be forwarded to the caller if possible.
-
-
Constructor Summary
Constructors Constructor Description ChildProcess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Program entry point.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Program entry point. An argument will give the name of a temporary file that contains serialized representations of the process and other information required to locate the originating host.- Parameters:
args
- program command line arguments
-
-