Interface ISystemCommand
-
- All Known Implementing Classes:
SystemCommand
public interface ISystemCommandThe system command which contains all information to execute a command such as environment, shell and a list of commands.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classISystemCommand.SystemCommandExecutionStatusResultDefines the execution status result
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>getCommandList()The system command list which will be passed in the exact way to the system command.IProcessEnvironmentgetProcessEnvironment()Get the process environmentjava.util.List<java.lang.String>getShell()The shell to execute.ISystemCommand.SystemCommandExecutionStatusResultgetSystemCommandExecutionStatusResult()Get the system command execution status resultjava.lang.StringtoString(boolean forDisplay)The command as string
-
-
-
Method Detail
-
getProcessEnvironment
IProcessEnvironment getProcessEnvironment()
Get the process environment- Returns:
- the process environment
-
getShell
java.util.List<java.lang.String> getShell()
The shell to execute.- Returns:
- the shell to use, by default null.
-
getCommandList
java.util.List<java.lang.String> getCommandList()
The system command list which will be passed in the exact way to the system command.- Returns:
- the command list
-
getSystemCommandExecutionStatusResult
ISystemCommand.SystemCommandExecutionStatusResult getSystemCommandExecutionStatusResult()
Get the system command execution status result- Returns:
- the system command execution status result
-
toString
java.lang.String toString(boolean forDisplay)
The command as string- Parameters:
forDisplay- true to prepare the arguments for display; otherwise false. This can be used to protect security relevant arguments e.g. java properties with a password- Returns:
- the arguments as string
-
-