Class ProcessRunnerPosix
java.lang.Object
org.aksw.shellgebra.exec.graph.ProcessRunnerPosix
- All Implemented Interfaces:
AutoCloseable, ProcessRunner
-
Constructor Summary
ConstructorsConstructorDescriptionProcessRunnerPosix(Path basePath, PosixPipe pipeIn, PosixPipe pipeOut, PosixPipe pipeErr, boolean inheritInFromSystem, boolean inheritOutFromSystem, boolean inheritErrFromSystem) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessBuilderclone(ProcessBuilder original) voidclose()configure(IProcessBuilder<?> processBuilder) static ProcessRunnercreate()static ProcessRunnerstatic ProcessRunnercreate(Path basePath, boolean fd0OverridesInherit, boolean fd1OverridesInherit, boolean fd2OverridesInherit) setErrorReader(Consumer<InputStream> reader) setInputGenerator(Consumer<OutputStream> inputSupplier) setOutputReader(Consumer<InputStream> reader) voidshutdown()Close this runner for new processes, immediately close all process-facing pipes.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ProcessRunner
setErrorLineReader, setErrorLineReaderUtf8, setInputPrintStream, setInputPrintStreamUtf8, setOutputLineReader, setOutputLineReaderUtf8
-
Constructor Details
-
ProcessRunnerPosix
-
-
Method Details
-
environment
- Specified by:
environmentin interfaceProcessRunner
-
inputPipe
- Specified by:
inputPipein interfaceProcessRunner
-
outputPipe
- Specified by:
outputPipein interfaceProcessRunner
-
errorPipe
- Specified by:
errorPipein interfaceProcessRunner
-
internalIn
- Specified by:
internalInin interfaceProcessRunner
-
internalOut
- Specified by:
internalOutin interfaceProcessRunner
-
internalErr
- Specified by:
internalErrin interfaceProcessRunner
-
internalPrintOut
- Specified by:
internalPrintOutin interfaceProcessRunner
-
internalPrintErr
- Specified by:
internalPrintErrin interfaceProcessRunner
-
setOutputReader
- Specified by:
setOutputReaderin interfaceProcessRunner
-
setErrorReader
- Specified by:
setErrorReaderin interfaceProcessRunner
-
setInputGenerator
- Specified by:
setInputGeneratorin interfaceProcessRunner
-
getOutputStream
- Specified by:
getOutputStreamin interfaceProcessRunner
-
getInputStream
- Specified by:
getInputStreamin interfaceProcessRunner
-
getErrorStream
- Specified by:
getErrorStreamin interfaceProcessRunner
-
directory
- Specified by:
directoryin interfaceProcessRunner
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static ProcessRunner create(Path basePath, boolean fd0OverridesInherit, boolean fd1OverridesInherit, boolean fd2OverridesInherit) throws IOException - Throws:
IOException
-
shutdown
Description copied from interface:ProcessRunnerClose this runner for new processes, immediately close all process-facing pipes.- Specified by:
shutdownin interfaceProcessRunner- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
clone
-
configure
- Specified by:
configurein interfaceProcessRunner
-