Class ProcessExecutor
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.process.ProcessExecutor
-
public class ProcessExecutor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SUDO
-
Constructor Summary
Constructors Constructor Description ProcessExecutor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Output
execute(java.lang.String commandPath, boolean asSudo, boolean redirectStreamToFile, long timeoutInMilliseconds, java.util.List<java.lang.String> args)
Output
execute(java.lang.String commandPath, boolean asSudo, long timeoutInMilliseconds, java.util.List<java.lang.String> args)
static ProcessExecutor
getInstance()
-
-
-
Field Detail
-
SUDO
public static final java.lang.String SUDO
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ProcessExecutor getInstance()
-
execute
public Output execute(java.lang.String commandPath, boolean asSudo, long timeoutInMilliseconds, java.util.List<java.lang.String> args)
- Parameters:
commandPath
-asSudo
-timeoutInMilliseconds
-args
-- Returns:
-
execute
public Output execute(java.lang.String commandPath, boolean asSudo, boolean redirectStreamToFile, long timeoutInMilliseconds, java.util.List<java.lang.String> args)
- Parameters:
commandPath
-asSudo
-redirectStreamToFile
-timeoutInMilliseconds
-args
-- Returns:
-
-