Package io.goobi.viewer.controller.shell
Class ShellCommand
java.lang.Object
io.goobi.viewer.controller.shell.ShellCommand
Executes an external shell command and captures its standard output and error streams.
Supports configurable execution timeouts and optionally discards captured output to reduce
memory usage for fire-and-forget invocations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintexec()intexec(long timeoutInMillis) booleanvoidsetKeepOutput(boolean keepOutput)
-
Constructor Details
-
ShellCommand
-
-
Method Details
-
exec
- Throws:
IOExceptionInterruptedException
-
exec
- Throws:
IOExceptionInterruptedException
-
isKeepOutput
public boolean isKeepOutput() -
setKeepOutput
public void setKeepOutput(boolean keepOutput) -
getOutput
-
getErrorOutput
-