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

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Validation

      public Validation()
    • Validation

      public Validation(List<Validator> additionalValidators)
      Create instance taking additional validators (e.g for cloud applications)
  • Method Details

    • 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