Class ContainerRestartValidator

  • All Implemented Interfaces:
    ChangeValidator

    public class ContainerRestartValidator
    extends java.lang.Object
    implements ChangeValidator
    Returns a restart action for each container that has turned on QrConfig.restartOnDeploy.
    Author:
    bjorncs
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<com.yahoo.config.model.api.ConfigChangeAction> validate​(VespaModel currentModel, VespaModel nextModel, com.yahoo.config.application.api.ValidationOverrides ignored, java.time.Instant now)
      Validates the current active vespa model with the next model.
      • Methods inherited from class java.lang.Object

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

      • ContainerRestartValidator

        public ContainerRestartValidator()
    • Method Detail

      • validate

        public java.util.List<com.yahoo.config.model.api.ConfigChangeAction> validate​(VespaModel currentModel,
                                                                                      VespaModel nextModel,
                                                                                      com.yahoo.config.application.api.ValidationOverrides ignored,
                                                                                      java.time.Instant now)
        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
        ignored - validation overrides
        now - the instant to use as now
        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