Interface CommandLineExecutorService
-
- All Known Implementing Classes:
CommandLineExecutorComponent
public interface CommandLineExecutorService
Interface for the service that manages commandline execution.- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecResultexecCommand(String commandName, CmdParameters params)List<String>getAvailableCommands()CommandAvailabilitygetCommandAvailability(String commandName)CommandLineDescriptorgetCommandLineDescriptor(String commandName)CmdParametersgetDefaultCmdParameters()List<String>getRegistredCommands()
-
-
-
Method Detail
-
getCommandAvailability
CommandAvailability getCommandAvailability(String commandName)
-
execCommand
ExecResult execCommand(String commandName, CmdParameters params) throws CommandNotAvailable
- Throws:
CommandNotAvailable
-
getRegistredCommands
List<String> getRegistredCommands()
-
getAvailableCommands
List<String> getAvailableCommands()
-
getDefaultCmdParameters
CmdParameters getDefaultCmdParameters()
- Returns:
- a new
CmdParameterspre-filled with commonly used parameters such as the tmp dir. - Since:
- 7.4
-
getCommandLineDescriptor
CommandLineDescriptor getCommandLineDescriptor(String commandName)
- Since:
- 11.4
-
-