Interface Executor
-
- All Known Implementing Classes:
ShellExecutor
public interface Executor
Interface for class that provide a way to execute aCommandLineDescriptor
.- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecResult
exec(CommandLineDescriptor cmdDesc, CmdParameters params, EnvironmentDescriptor env)
No exception is thrown but the returnedExecResult
contains everything about the command execution, including an optional exception.
-
-
-
Method Detail
-
exec
ExecResult exec(CommandLineDescriptor cmdDesc, CmdParameters params, EnvironmentDescriptor env)
No exception is thrown but the returnedExecResult
contains everything about the command execution, including an optional exception.The execution duration is time boxed by the lower value of the command description timeout or the transaction TTL, the TTL must be greater than 5s to avoid transaction timeout.
- Parameters:
cmdDesc
- Command to run. Cannot be null.params
- Parameters passed to the command. Cannot be null.env
- Environment context (variable and working directory)- Returns:
- Result of the execution
- Since:
- 7.4
-
-