Class AbstractProcessLauncher.SlaveSocketWrapper

java.lang.Object
org.jppf.process.AbstractProcessLauncher.SlaveSocketWrapper
All Implemented Interfaces:
AutoCloseable, Runnable
Enclosing class:
AbstractProcessLauncher

protected class AbstractProcessLauncher.SlaveSocketWrapper extends Object implements Runnable, AutoCloseable
Accepts a connection from the child process and sends process commands as int values via the connection.

The protocol is very simple: a single int command with no parameter is sent to the child process, which interprets it as it wishes. No acknowledgement or response is expected.

Since:
5.0
  • Constructor Details

    • SlaveSocketWrapper

      protected SlaveSocketWrapper()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • sendActionCommand

      protected void sendActionCommand(int action)
      Send an action command to the slave node.
      Parameters:
      action - the code of the action command to send.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable