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

Method Summary
 Map<String,String> execute(CommandFormatter formatter, CommandFormat format, CommandLine<String> command, Map<String,String> inputs)
          Execute a command.
 

Method Detail

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 options
format - the CommandFormat used to define the formatting for options
command - the CommandLine to process
inputs - the Map of named inputs
Throws:
JobExecutionException


Copyright © 2006-2008. All Rights Reserved.