@Service public class DefaultStatusPreconditionsValidatorService extends Object implements StatusPreconditionsValidatorService
| Constructor and Description |
|---|
DefaultStatusPreconditionsValidatorService() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
checkBackupExistence(Path muleDistroLocation)
Checks existence of any BackUp.
|
List<String> |
checkRollbackPreconditions(Path muleDistroLocation)
Checks rollback preconditions for status command.
|
List<String> |
checkUpgradeStatusOffline(MuleDistribution oldMule)
Checks upgrade preconditions for status command.
|
boolean |
getConsentForOverwritingBackup(boolean force)
Asks consent for overwriting the current BackUp.
|
public DefaultStatusPreconditionsValidatorService()
public List<String> checkUpgradeStatusOffline(MuleDistribution oldMule) throws IOException
checkUpgradeStatusOffline in interface StatusPreconditionsValidatorServiceoldMule - MuleDistribution representing the old Mule Runtime distribution being upgraded.IOException - if an I/O error occurspublic List<String> checkRollbackPreconditions(Path muleDistroLocation) throws IOException
checkRollbackPreconditions in interface StatusPreconditionsValidatorServicemuleDistroLocation - MuleDistribution representing the current Mule Runtime distribution location.IOException - if an I/O error occurspublic boolean getConsentForOverwritingBackup(boolean force)
throws IOException
getConsentForOverwritingBackup in interface StatusPreconditionsValidatorServiceforce - If force is true, will not ask to the user.IOException - I/O Exception.public List<String> checkBackupExistence(Path muleDistroLocation) throws IOException
checkBackupExistence in interface StatusPreconditionsValidatorServicemuleDistroLocation - Mule path to looking for the BackUp.IOException - I/O Exception.Copyright © 2022 MuleSoft, Inc.. All rights reserved.