public interface PreconditionsValidatorService
| Modifier and Type | Method and Description |
|---|---|
List<String> |
checkBackupExistence(Path muleDistroLocation)
Checks existence of any BackUp.
|
List<String> |
checkRollbackPreconditions(Path muleDistroLocation)
Checks that all preconditions for performing the rollback are met.
|
void |
checkUpgradePreconditions(MuleDistribution oldMule,
MuleDistribution newMule,
boolean force)
Checks that all preconditions for performing the upgrade are met.
|
List<String> |
checkUpgradeStatusOffline(MuleDistribution oldMule)
Checks upgrade pre-conditions for status command.
|
boolean |
getConsentForOverwritingBackup(boolean force)
Asks consent for overwriting the current BackUp.
|
void checkUpgradePreconditions(MuleDistribution oldMule, MuleDistribution newMule, boolean force) throws IOException
oldMule - MuleDistribution representing the old Mule Runtime distribution being upgraded.newMule - MuleDistribution representing the new Mule Runtime distribution used for the upgrade.force - whether explicit consent has been provided for the override related preconditions like the ones for the backup
and applied patches.IllegalStateException - if validations are not met.IOException - if an I/O error occurs.List<String> checkRollbackPreconditions(Path muleDistroLocation) throws IOException
muleDistroLocation - location of the Mule Runtime distribution being validated for rollback process.IllegalStateException - if validations are not met.IOException - if an I/O error occurs.List<String> checkUpgradeStatusOffline(MuleDistribution oldMule) throws IOException
oldMule - MuleDistribution representing the old Mule Runtime distribution being upgraded.IOException - if an I/O error occursboolean getConsentForOverwritingBackup(boolean force)
throws IOException
force - If force is true, will not ask to the user.IOException - I/O Exception.List<String> checkBackupExistence(Path muleDistroLocation) throws IOException
muleDistroLocation - Mule path to looking for the BackUp.IOException - I/O Exception.Copyright © 2021 MuleSoft, Inc.. All rights reserved.