Class Validation
- java.lang.Object
-
- com.yahoo.vespa.model.application.validation.Validation
-
public class Validation extends Object
Executor of validators. This defines the right order of validator execution.- Author:
- hmusum
-
-
Constructor Summary
Constructors Constructor Description Validation()
Validation(List<Validator> additionalValidators)
Create instance taking additional validators (e.g for cloud applications)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.yahoo.config.model.api.ConfigChangeAction>
validate(VespaModel model, com.yahoo.config.model.api.ValidationParameters validationParameters, DeployState deployState)
Validates the model supplied, and if there already exists a model for the application validates changes between the previous and current model
-
-
-
Method Detail
-
validate
public List<com.yahoo.config.model.api.ConfigChangeAction> validate(VespaModel model, com.yahoo.config.model.api.ValidationParameters validationParameters, DeployState deployState)
Validates the model supplied, and if there already exists a model for the application validates changes between the previous and current model- Returns:
- a list of required changes needed to make this configuration live
- Throws:
com.yahoo.config.application.api.ValidationOverrides.ValidationException
- if the change fails validation
-
-