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;
}
Aggregations