@Service public class DefaultPreconditionsValidator extends Object implements PreconditionsValidator
| Constructor and Description |
|---|
DefaultPreconditionsValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkRollbackReadiness(Path muleDistroLocation)
Checks that all preconditions for performing the rollback are met.
|
void |
checkUpgradeReadiness(MuleDistribution oldMule,
MuleDistribution newMule,
boolean force)
Checks that all preconditions for performing the upgrade are met.
|
public void checkUpgradeReadiness(MuleDistribution oldMule, MuleDistribution newMule, boolean force) throws IOException
Preconditions are:
checkUpgradeReadiness in interface PreconditionsValidatoroldMule - MuleDistribution representing the old Mule Runtime distribution being upgradednewMule - MuleDistribution representing the new Mule Runtime distribution used for the upgradeforce - whether explicit consent has been provided for the override related preconditions like the ones for the backup
and applied patchesIllegalStateException - if validations are not metIOException - if an I/O error occurspublic void checkRollbackReadiness(Path muleDistroLocation) throws IOException
Preconditions are:
checkRollbackReadiness in interface PreconditionsValidatormuleDistroLocation - location of the Mule Runtime distribution being validated for rollback process.IllegalStateException - if validations are not met.IOException - if an I/O error occurs.Copyright © 2021 MuleSoft, Inc.. All rights reserved.