Search in sources :

Example 1 with RestartActions

use of com.yahoo.vespa.config.server.configchange.RestartActions 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());
    }
}
Also used : RestartActions(com.yahoo.vespa.config.server.configchange.RestartActions) RefeedActions(com.yahoo.vespa.config.server.configchange.RefeedActions)

Aggregations

RefeedActions (com.yahoo.vespa.config.server.configchange.RefeedActions)1 RestartActions (com.yahoo.vespa.config.server.configchange.RestartActions)1