Class AbstractExecutorInterpreter

java.lang.Object
fr.ens.biologie.genomique.eoulsan.galaxytools.executorinterpreters.AbstractExecutorInterpreter
All Implemented Interfaces:
ExecutorInterpreter
Direct Known Subclasses:
DefaultExecutorInterpreter, DockerExecutorInterpreter, GenericExecutorInterpreter

public abstract class AbstractExecutorInterpreter extends Object implements ExecutorInterpreter
This class define an abstract executor interpreter that contains the default implementation of the execute() method that use a ProcessBuilder.
Since:
2.0
Author:
Laurent Jourdren
  • Constructor Details

    • AbstractExecutorInterpreter

      public AbstractExecutorInterpreter()
  • Method Details

    • execute

      public ToolExecutorResult execute(List<String> commandLine, File executionDirectory, File temporaryDirectory, File stdoutFile, File stderrFile, File... filesUsed) throws IOException
      Description copied from interface: ExecutorInterpreter
      Execute a command line.
      Specified by:
      execute in interface ExecutorInterpreter
      Parameters:
      commandLine - the command line to execute
      executionDirectory - execution directory
      temporaryDirectory - temporary directory
      stdoutFile - stdout file
      stderrFile - stderr file
      filesUsed - files used
      Returns:
      a ToolExecutor object
      Throws:
      IOException - if an error occurs while executing the command