Class StartupCommandChangeValidator
java.lang.Object
com.yahoo.vespa.model.application.validation.change.StartupCommandChangeValidator
- All Implemented Interfaces:
ChangeValidator
Compares the startup command for the services in the next model with the ones in the current model.
If the startup command has changes, a change entry is created and reported back.
- Author:
- bjorncs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionStream<com.yahoo.config.model.api.ConfigChangeAction>
findServicesWithChangedStartupCommand
(AbstractConfigProducerRoot currentModel, AbstractConfigProducerRoot nextModel) List<com.yahoo.config.model.api.ConfigChangeAction>
validate
(VespaModel currentModel, VespaModel nextModel, DeployState deployState) Validates the current active vespa model with the next model.
-
Constructor Details
-
StartupCommandChangeValidator
public StartupCommandChangeValidator()
-
-
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 interfaceChangeValidator
- Parameters:
currentModel
- the current active modelnextModel
- 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
-
findServicesWithChangedStartupCommand
public Stream<com.yahoo.config.model.api.ConfigChangeAction> findServicesWithChangedStartupCommand(AbstractConfigProducerRoot currentModel, AbstractConfigProducerRoot nextModel)
-