Class ContentTypeRemovalValidator
java.lang.Object
com.yahoo.vespa.model.application.validation.change.ContentTypeRemovalValidator
- All Implemented Interfaces:
ChangeValidator
Checks that this does not remove a data type in a cluster, as that causes deletion
of all data of that type.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<com.yahoo.config.model.api.ConfigChangeAction>
validate
(VespaModel current, VespaModel next, DeployState deployState) Validates the current active vespa model with the next model.
-
Constructor Details
-
ContentTypeRemovalValidator
public ContentTypeRemovalValidator()
-
-
Method Details
-
validate
public List<com.yahoo.config.model.api.ConfigChangeAction> validate(VespaModel current, VespaModel next, 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:
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
-