uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandExecution
Class ExecuteLocally
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ExecuteLocally
public ExecuteLocally()
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 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.