Search in sources :

Example 1 with SdxUpgradeReplaceVms

use of com.sequenceiq.sdx.api.model.SdxUpgradeReplaceVms in project cloudbreak by hortonworks.

the class SdxRuntimeUpgradeService method shouldReplaceVmsAfterUpgrade.

private SdxUpgradeReplaceVms shouldReplaceVmsAfterUpgrade(SdxUpgradeRequest upgradeRequest) {
    SdxUpgradeReplaceVms replaceVms = Optional.ofNullable(upgradeRequest).map(SdxUpgradeRequest::getReplaceVms).orElse(SdxUpgradeReplaceVms.ENABLED);
    LOGGER.debug("VM-s replacement after the upgrade process is {}", replaceVms.name());
    return replaceVms;
}
Also used : SdxUpgradeReplaceVms(com.sequenceiq.sdx.api.model.SdxUpgradeReplaceVms)

Aggregations

SdxUpgradeReplaceVms (com.sequenceiq.sdx.api.model.SdxUpgradeReplaceVms)1