Class NodeResourceChangeValidator
- java.lang.Object
-
- com.yahoo.vespa.model.application.validation.change.NodeResourceChangeValidator
-
- All Implemented Interfaces:
ChangeValidator
public class NodeResourceChangeValidator extends Object implements ChangeValidator
Emits restart change actions for clusters where the node resources are changed in a way which requires a "restart" (container recreation) to take effect. Nodes will restart on their own on this condition but we want to emit restart actions to defer applying new config until restart.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description NodeResourceChangeValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.yahoo.config.model.api.ConfigChangeAction>
validate(VespaModel current, VespaModel next, com.yahoo.config.application.api.ValidationOverrides overrides, 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 current, VespaModel next, com.yahoo.config.application.api.ValidationOverrides overrides, 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:
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
-
-