Class SubProcessKernel
- java.lang.Object
-
- org.apache.beam.examples.subprocess.kernel.SubProcessKernel
-
public class SubProcessKernel extends java.lang.ObjectThis is the process kernel which deals with exec of the subprocess. It also deals with all I/O.
-
-
Constructor Summary
Constructors Constructor Description SubProcessKernel(SubProcessConfiguration options, java.lang.String binaryName)Creates the SubProcess Kernel ready for execution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>exec(SubProcessCommandLineArgs commands)byte[]execBinaryResult(SubProcessCommandLineArgs commands)
-
-
-
Constructor Detail
-
SubProcessKernel
public SubProcessKernel(SubProcessConfiguration options, java.lang.String binaryName)
Creates the SubProcess Kernel ready for execution. Will deal with all input and outputs to the SubProcess- Parameters:
options-binaryName-
-
-
Method Detail
-
exec
public java.util.List<java.lang.String> exec(SubProcessCommandLineArgs commands) throws java.lang.Exception
- Throws:
java.lang.Exception
-
execBinaryResult
public byte[] execBinaryResult(SubProcessCommandLineArgs commands) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-