Class Validation


  • public class Validation
    extends Object
    Executor of validators. This defines the right order of validator execution.
    Author:
    hmusum
    • Constructor Detail

      • Validation

        public Validation()
      • Validation

        public Validation​(List<Validator> additionalValidators)
        Create instance taking additional validators (e.g for cloud applications)
    • 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