com.yahoo.vespa.hosted.provision.os.CompositeOsUpgrader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of node-repository Show documentation
Show all versions of node-repository Show documentation
Keeps track of node assignment in a multi-application setup.
package com.yahoo.vespa.hosted.provision.os;
import com.yahoo.config.provision.NodeType;
import java.util.List;
/**
* An implementation of {@link OsUpgrader} that delegates calls to multiple implementations.
*
* @author mpolden
*/
public record CompositeOsUpgrader(List upgraders) implements OsUpgrader {
public CompositeOsUpgrader(List upgraders) {
this.upgraders = List.copyOf(upgraders);
}
@Override
public void upgradeTo(OsVersionTarget target) {
upgraders.forEach(upgrader -> upgrader.upgradeTo(target));
}
@Override
public void disableUpgrade(NodeType type) {
upgraders.forEach(upgrader -> upgrader.disableUpgrade(type));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy