public interface StatusPreconditionsValidatorService
| 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.
|
List<String> |
checkUpgradeStatusOffline(MuleDistribution oldMule)
Checks upgrade preconditions for status command.
|
boolean |
getConsentForOverwritingBackup(boolean force)
Asks consent for overwriting the current BackUp.
|
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 © 2022 MuleSoft, Inc.. All rights reserved.