@Service public class DefaultPreconditionsValidatorService extends Object implements PreconditionsValidatorService
| Constructor and Description |
|---|
DefaultPreconditionsValidatorService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkBackupExistence(Path muleDistroLocation) |
boolean |
checkBackupIntegrity(Path muleDistroLocation) |
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.
|
List<String> |
getBackupIntegrityErrorMessages(Path muleDistroLocation) |
public DefaultPreconditionsValidatorService()
public void checkUpgradeReadiness(MuleDistribution oldMule, MuleDistribution newMule, boolean force) throws IOException
Preconditions are:
checkUpgradeReadiness in interface PreconditionsValidatorServiceoldMule - 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 PreconditionsValidatorServicemuleDistroLocation - location of the Mule Runtime distribution being validated for rollback process.IllegalStateException - if validations are not met.IOException - if an I/O error occurs.public boolean checkBackupExistence(Path muleDistroLocation) throws IOException
IOExceptionpublic List<String> getBackupIntegrityErrorMessages(Path muleDistroLocation)
public boolean checkBackupIntegrity(Path muleDistroLocation) throws IOException
IOExceptionCopyright © 2021 MuleSoft, Inc.. All rights reserved.