Class StartupCommandChangeValidator

  • All Implemented Interfaces:
    ChangeValidator

    public class StartupCommandChangeValidator
    extends java.lang.Object
    implements ChangeValidator
    Compares the startup command for the services in the next model with the ones in the old model. If the startup command has changes, a change entry is created and reported back.
    Author:
    bjorncs
    • Constructor Detail

      • StartupCommandChangeValidator

        public StartupCommandChangeValidator()
    • Method Detail

      • validate

        public java.util.List<com.yahoo.config.model.api.ConfigChangeAction> validate​(VespaModel currentModel,
                                                                                      VespaModel nextModel,
                                                                                      com.yahoo.config.application.api.ValidationOverrides overrides,
                                                                                      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
        overrides - 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