Class ShellModule
java.lang.Object
fr.ens.biologie.genomique.eoulsan.modules.AbstractModule
fr.ens.biologie.genomique.eoulsan.modules.ShellModule
- All Implemented Interfaces:
Module
This class define a module that execute a shell command. It use the user shell to execute the
command. The launched command is : $SHELL -c "command"
- Author:
- Laurent Jourdren
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(StepConfigurationContext context, Set<Parameter> stepParameters) Set the parameters of the step to configure the module.execute(TaskContext context, TaskStatus status) Execute a task step.Get the description of the modulegetName()Get the name of the module.fr.ens.biologie.genomique.kenetre.util.VersionGet version of the Module.Methods inherited from class fr.ens.biologie.genomique.eoulsan.modules.AbstractModule
getChecker, getInputPorts, getOutputPorts, getParallelizationMode, getRequiredEoulsanVersion, getRequirements
-
Constructor Details
-
ShellModule
public ShellModule()
-
-
Method Details
-
getName
Description copied from interface:ModuleGet the name of the module.- Returns:
- the name of the module
-
getDescription
Description copied from interface:ModuleGet the description of the module- Specified by:
getDescriptionin interfaceModule- Overrides:
getDescriptionin classAbstractModule- Returns:
- the description of the module
-
getVersion
public fr.ens.biologie.genomique.kenetre.util.Version getVersion()Description copied from interface:ModuleGet version of the Module.- Returns:
- a Version object with the version of the Module
-
configure
public void configure(StepConfigurationContext context, Set<Parameter> stepParameters) throws EoulsanException Description copied from interface:ModuleSet the parameters of the step to configure the module.- Specified by:
configurein interfaceModule- Overrides:
configurein classAbstractModule- Parameters:
context- configuration context. The context can be null for generator stepsstepParameters- parameters of the step- Throws:
EoulsanException- if a parameter is invalid
-
execute
Description copied from interface:ModuleExecute a task step.- Parameters:
context- Execution contextstatus- of the task- Returns:
- a TaskResult object
-