uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandExecution
Interface CommandExecutionStrategy
- All Known Implementing Classes:
- ExecuteLocally
public interface CommandExecutionStrategy
Compute a Result from a Command. In the simplest case, this will compile the command into a list of strings, process
these with Process.exec or a suitable shell, and place the output into a Result object.
- Author:
- Cheng-Yang(Louis) Tang, Matthew Pocock
execute
Map<String,String> execute(CommandFormatter formatter,
CommandFormat format,
CommandLine<String> command,
Map<String,String> inputs)
throws JobExecutionException
- Execute a command.
- Parameters:
formatter
- the CommandFormatter
used to format the optionsformat
- the CommandFormat
used to define the formatting for optionscommand
- the CommandLine
to processinputs
- the Map
of named inputs
- Throws:
JobExecutionException
Copyright © 2006-2008. All Rights Reserved.