uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandExecution
Class ExecuteLocally

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandExecution.ExecuteLocally
All Implemented Interfaces:
CommandExecutionStrategy

public class ExecuteLocally
extends Object
implements CommandExecutionStrategy

A default implementation of a CommandExecutionStrategy that uses Process.exec().

Author:
Cheng-Yang(Louis) Tang, Matthew Pocock

Field Summary
static String EXIT_STATUS_KEY
           
static String STDERR_KEY
           
static String STDIN_KEY
           
static String STDOUT_KEY
           
 
Constructor Summary
ExecuteLocally()
           
 
Method Summary
 Map<String,String> execute(CommandFormatter formatter, CommandFormat format, CommandLine<String> command, Map<String,String> inputs)
          Execute a command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STDIN_KEY

public static final String STDIN_KEY
See Also:
Constant Field Values

STDOUT_KEY

public static final String STDOUT_KEY
See Also:
Constant Field Values

STDERR_KEY

public static final String STDERR_KEY
See Also:
Constant Field Values

EXIT_STATUS_KEY

public static final String EXIT_STATUS_KEY
See Also:
Constant Field Values
Constructor Detail

ExecuteLocally

public ExecuteLocally()
Method Detail

execute

public Map<String,String> execute(CommandFormatter formatter,
                                  CommandFormat format,
                                  CommandLine<String> command,
                                  Map<String,String> inputs)
                           throws JobExecutionException
Description copied from interface: CommandExecutionStrategy
Execute a command.

Specified by:
execute in interface CommandExecutionStrategy
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.