Class ContentClusterRemovalValidator

  • All Implemented Interfaces:
    ChangeValidator

    public class ContentClusterRemovalValidator
    extends Object
    implements ChangeValidator
    Checks that this does not remove a content cluster (or changes its id) as that means losing all data of that cluster.
    Author:
    bratseth
    • Constructor Detail

      • ContentClusterRemovalValidator

        public ContentClusterRemovalValidator()
    • 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 interface ChangeValidator
        Parameters:
        current - the current active model
        next - the next model we would like to activate
        overrides - validation overrides
        now - 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