Package org.jppf.server
Class DriverLauncher
java.lang.Object
org.jppf.server.DriverLauncher
This class is intended as a controller for the JPPF driver, to enable stopping and restarting it when requested.
It performs the following operations:
- open a server socket the driver will listen to (port number is dynamically attributed)
- Start the JPPF driver as a subprocess, sending the the server socket port number as an argument
- Wait for the subprocess to exit
- If the subprocess exit code is equal to 2, the subprocess is restarted
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DriverLauncher
public DriverLauncher()
-
-
Method Details
-
main
Start this application, then the JPPF driver a subprocess.- Parameters:
args- not used.
-