Package org.jppf.process
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidrun()protected voidsendActionCommand(int action) Send an action command to the slave node.
-
Constructor Details
-
SlaveSocketWrapper
protected SlaveSocketWrapper()
-
-
Method Details
-
run
public void run() -
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:
closein interfaceAutoCloseable
-