Class ContainerRestartValidator
- java.lang.Object
-
- com.yahoo.vespa.model.application.validation.change.ContainerRestartValidator
-
- All Implemented Interfaces:
ChangeValidator
public class ContainerRestartValidator extends Object implements ChangeValidator
Returns a restart action for each container that has turned onQrConfig.restartOnDeploy()
.- Author:
- bjorncs
-
-
Constructor Summary
Constructors Constructor Description ContainerRestartValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.yahoo.config.model.api.ConfigChangeAction>
validate(VespaModel currentModel, VespaModel nextModel, com.yahoo.config.application.api.ValidationOverrides ignored, Instant now)
Validates the current active vespa model with the next model.
-
-
-
Method Detail
-
validate
public List<com.yahoo.config.model.api.ConfigChangeAction> validate(VespaModel currentModel, VespaModel nextModel, com.yahoo.config.application.api.ValidationOverrides ignored, 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 interfaceChangeValidator
- Parameters:
currentModel
- the current active modelnextModel
- the next model we would like to activateignored
- validation overridesnow
- 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
-
-