Interface ChangeValidator
-
- All Known Implementing Classes:
ClusterSizeReductionValidator
,ConfigValueChangeValidator
,ContainerRestartValidator
,ContentClusterRemovalValidator
,ContentTypeRemovalValidator
,GlobalDocumentChangeValidator
,IndexedSearchClusterChangeValidator
,IndexingModeChangeValidator
,ResourcesReductionValidator
,StartupCommandChangeValidator
,StreamingSearchClusterChangeValidator
public interface ChangeValidator
Interface for validating changes between a current active and next config model.- Since:
- 2014-11-18
- Author:
- geirst
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<com.yahoo.config.model.api.ConfigChangeAction>
validate(VespaModel current, VespaModel next, com.yahoo.config.application.api.ValidationOverrides overrides, java.time.Instant now)
Validates the current active vespa model with the next model.
-
-
-
Method Detail
-
validate
java.util.List<com.yahoo.config.model.api.ConfigChangeAction> validate(VespaModel current, VespaModel next, com.yahoo.config.application.api.ValidationOverrides overrides, java.time.Instant now)
Validates the current active vespa model with the next model. Both current and next should be non-null.- Parameters:
current
- the current active modelnext
- the next model we would like to activateoverrides
- 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
-
-