Interface Requirement
- All Known Implementing Classes:
AbstractRequirement,DockerRequirement,PathRequirement,RserveRequirement
public interface Requirement
This interface define a requirement for an Eoulsan Step.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
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.booleanTest if the requirement is installable.booleanTest if the requirement is optional.
-
Method Details
-
getName
String getName()The name of the requirement.- Returns:
- the name of the requirement
-
isOptional
boolean isOptional()Test if the requirement is optional.- Returns:
- true if he requirement is optional
-
isAvailable
boolean isAvailable()Test if the requirement is available.- Returns:
- true if he requirement is optional
-
isInstallable
boolean isInstallable()Test if the requirement is installable.- Returns:
- true if the requirement is installable
-
getParameters
Get the parameters of the requirement- Returns:
- a set of parameters
-
configure
Configure the requirement.- Parameters:
parameters- the parameters of the requirement- Throws:
EoulsanException- if an error occurs while configuring the requirement
-
install
Install the requirement.- Parameters:
progress- Progress object- Throws:
EoulsanException- if the requirement cannot be installed
-