Class GlobalDocumentChangeValidator

java.lang.Object
com.yahoo.vespa.model.application.validation.change.GlobalDocumentChangeValidator
All Implemented Interfaces:
ChangeValidator

public class GlobalDocumentChangeValidator extends Object implements ChangeValidator
Class that fails via exception if global attribute changes for a document type in a content cluster unless corresponding override is present.
  • Constructor Details

    • GlobalDocumentChangeValidator

      public GlobalDocumentChangeValidator()
  • Method Details

    • validate

      public List<com.yahoo.config.model.api.ConfigChangeAction> validate(VespaModel currentModel, VespaModel nextModel, DeployState deployState)
      Description copied from interface: ChangeValidator
      Validates the current active vespa model with the next model. Both current and next should be non-null.
      Specified by:
      validate in interface ChangeValidator
      Parameters:
      currentModel - the current active model
      nextModel - 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