Class ProcessDockerExec
java.lang.Object
java.lang.Process
org.aksw.shellgebra.processbuilder.ProcessDockerExec
A minimal Process-like wrapper over `docker exec` using the modern
ResultCallback API. - Separate streaming stdout/stderr (TTY=false) -
Streaming stdin - waitFor/exitValue/isAlive - Best-effort destroy (close
stdin + stop callback)
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Process
children, descendants, errorReader, errorReader, info, inputReader, inputReader, onExit, outputWriter, outputWriter, pid, supportsNormalTermination, toHandle
-
Constructor Details
-
ProcessDockerExec
- Throws:
IOException
-
-
Method Details
-
getContainerId
-
getOutputStream
- Specified by:
getOutputStreamin classProcess
-
getInputStream
- Specified by:
getInputStreamin classProcess
-
getErrorStream
- Specified by:
getErrorStreamin classProcess
-
waitFor
- Specified by:
waitForin classProcess- Throws:
InterruptedException
-
waitFor
- Overrides:
waitForin classProcess- Throws:
InterruptedException
-
exitValue
-
destroy
-
destroyForcibly
- Overrides:
destroyForciblyin classProcess
-
isAlive
-
readAllStdout
- Throws:
IOException
-