use of com.yahoo.vespa.config.server.configchange.RefeedActions in project vespa by vespa-engine.
the class ApplicationRepository method logConfigChangeActions.
private static void logConfigChangeActions(ConfigChangeActions actions, DeployLogger logger) {
RestartActions restartActions = actions.getRestartActions();
if (!restartActions.isEmpty()) {
logger.log(Level.WARNING, "Change(s) between active and new application that require restart:\n" + restartActions.format());
}
RefeedActions refeedActions = actions.getRefeedActions();
if (!refeedActions.isEmpty()) {
boolean allAllowed = refeedActions.getEntries().stream().allMatch(RefeedActions.Entry::allowed);
logger.log(allAllowed ? Level.INFO : Level.WARNING, "Change(s) between active and new application that may require re-feed:\n" + refeedActions.format());
}
}
Aggregations