Class RedundancyValidator

java.lang.Object
com.yahoo.vespa.model.application.validation.Validator
com.yahoo.vespa.model.application.validation.first.RedundancyValidator
All Implemented Interfaces:
ChangeValidator

public class RedundancyValidator extends Validator implements ChangeValidator
Validates that applications in prod zones do not have redundancy 1 (without a validation override).
Author:
bratseth
  • Constructor Details

    • RedundancyValidator

      public RedundancyValidator()
  • Method Details

    • validate

      public void validate(VespaModel model, DeployState deployState)
      Validate on first deployment.
      Specified by:
      validate in class Validator
      Parameters:
      model - a VespaModel object
      deployState - the DeployState built from building the model
    • validate

      public List<com.yahoo.config.model.api.ConfigChangeAction> validate(VespaModel current, VespaModel next, DeployState deployState)
      Validate on change.
      Specified by:
      validate in interface ChangeValidator
      Parameters:
      current - the current active model
      next - the next model we would like to activate
      Returns:
      a list of actions specifying what needs to be done in order to activate the new model. Return an empty list if nothing needs to be done