@Service public class DefaultUpgradeService extends Object implements UpgradeService
| Modifier and Type | Field and Description |
|---|---|
static Path |
DEFAULT_NEW_MULE_DISTRO_PATH
Upgrade tool jar is assumed to be located at /mule-home/tools directory
|
static String |
USER_REJECTED_TO_PROCEED_WITH_THE_UPGRADE_PROCESS_MESSAGE |
| Constructor and Description |
|---|
DefaultUpgradeService() |
| Modifier and Type | Method and Description |
|---|---|
protected Path |
getNewMuleDistroPath(Path newMule) |
void |
upgrade(Path oldMule,
Path newMule,
UpgradeOptions upgradeOptions)
Upgrades a Mule Runtime distribution based on a new given one.
|
public static final String USER_REJECTED_TO_PROCEED_WITH_THE_UPGRADE_PROCESS_MESSAGE
public static final Path DEFAULT_NEW_MULE_DISTRO_PATH
public void upgrade(Path oldMule, Path newMule, UpgradeOptions upgradeOptions) throws IOException
upgrade in interface UpgradeServiceoldMule - path to the Mule distribution to upgrade.newMule - path of the Mule distribution that will be used for the upgrade.upgradeOptions - configuration options for the upgrade.IOException - if any I/O error occurs.Copyright © 2021 MuleSoft, Inc.. All rights reserved.