Interface ChangeValidator

All Known Implementing Classes:
CertificateRemovalChangeValidator, CloudAccountChangeValidator, ConfigValueChangeValidator, ContainerRestartValidator, ContentClusterRemovalValidator, ContentTypeRemovalValidator, GlobalDocumentChangeValidator, IndexedSearchClusterChangeValidator, IndexingModeChangeValidator, NodeResourceChangeValidator, RedundancyIncreaseValidator, RedundancyValidator, ResourcesReductionValidator, StartupCommandChangeValidator, StreamingSearchClusterChangeValidator

public interface ChangeValidator
Interface for validating changes between a current active and next config model.
Author:
geirst
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.yahoo.config.model.api.ConfigChangeAction>
    validate(VespaModel current, VespaModel next, DeployState deployState)
    Validates the current active vespa model with the next model.
  • Method Details

    • validate

      List<com.yahoo.config.model.api.ConfigChangeAction> validate(VespaModel current, VespaModel next, DeployState deployState)
      Validates the current active vespa model with the next model. Both current and next should be non-null.
      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
      Throws:
      IllegalArgumentException - if the change fails validation