Class DockerRequirement
java.lang.Object
fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
fr.ens.biologie.genomique.eoulsan.requirements.DockerRequirement
- All Implemented Interfaces:
Requirement
This class define a Docker requirement.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Field Summary
FieldsFields inherited from class fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
NAME_PARAMETER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure the requirement.getName()The name of the requirement.Get the parameters of the requirementvoidInstall the requirement.booleanTest if the requirement is available.static RequirementnewDockerRequirement(String dockerImage) Create a new docker image as mandatory requirement.static RequirementnewDockerRequirement(String dockerImage, boolean optional) Create a new docker image requirement.toString()Methods inherited from class fr.ens.biologie.genomique.eoulsan.requirements.AbstractRequirement
isInstallable, isOptional
-
Field Details
-
REQUIREMENT_NAME
- See Also:
-
-
Constructor Details
-
DockerRequirement
public DockerRequirement()
-
-
Method Details
-
getName
Description copied from interface:RequirementThe name of the requirement.- Returns:
- the name of the requirement
-
getParameters
Description copied from interface:RequirementGet the parameters of the requirement- Specified by:
getParametersin interfaceRequirement- Overrides:
getParametersin classAbstractRequirement- Returns:
- a set of parameters
-
configure
Description copied from interface:RequirementConfigure the requirement.- Specified by:
configurein interfaceRequirement- Overrides:
configurein classAbstractRequirement- Parameters:
parameters- the parameters of the requirement- Throws:
EoulsanException- if an error occurs while configuring the requirement
-
isAvailable
public boolean isAvailable()Description copied from interface:RequirementTest if the requirement is available.- Returns:
- true if he requirement is optional
-
install
Description copied from interface:RequirementInstall the requirement.- Parameters:
progress- Progress object- Throws:
EoulsanException- if the requirement cannot be installed
-
newDockerRequirement
Create a new docker image as mandatory requirement.- Parameters:
dockerImage- the docker image name.- Returns:
- a new Requirement object
- Throws:
EoulsanException- if an error occurs while configuring the requirement
-
newDockerRequirement
public static Requirement newDockerRequirement(String dockerImage, boolean optional) throws EoulsanException Create a new docker image requirement.- Parameters:
dockerImage- the docker imageoptional- true if the docker image is a mandatory requirement- Returns:
- a new Requirement object
- Throws:
EoulsanException- if an error occurs while configuring the requirement
-
toString
-