Class DriverLauncher

java.lang.Object
org.jppf.server.DriverLauncher

public class DriverLauncher extends Object

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 Details

    • DriverLauncher

      public DriverLauncher()
  • Method Details

    • main

      public static void main(String... args)
      Start this application, then the JPPF driver a subprocess.
      Parameters:
      args - not used.