Class RedundancyValidator
java.lang.Object
com.yahoo.vespa.model.application.validation.Validator
com.yahoo.vespa.model.application.validation.first.RedundancyValidator
- All Implemented Interfaces:
ChangeValidator
Validates that applications in prod zones do not have redundancy 1 (without a validation override).
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(VespaModel model, DeployState deployState) Validate on first deployment.List<com.yahoo.config.model.api.ConfigChangeAction>
validate
(VespaModel current, VespaModel next, DeployState deployState) Validate on change.
-
Constructor Details
-
RedundancyValidator
public RedundancyValidator()
-
-
Method Details
-
validate
Validate on first deployment.- Specified by:
validate
in classValidator
- Parameters:
model
- a VespaModel objectdeployState
- theDeployState
built from building the model
-
validate
public List<com.yahoo.config.model.api.ConfigChangeAction> validate(VespaModel current, VespaModel next, DeployState deployState) Validate on change.- Specified by:
validate
in interfaceChangeValidator
- Parameters:
current
- the current active modelnext
- 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
-