public interface BackupService
| Modifier and Type | Method and Description |
|---|---|
void |
create(MuleDistribution muleDistribution,
List<Path> relativePathOfFilesToBeBackedUp)
Creates a backup copy of the given file paths within the Mule distribution directory that will be undergoing the upgrade.
|
void |
printBackUpDescriptor(Optional<BackupDescriptor> backupDescriptor)
Prints a BackUp Descriptor with a pretty format .
|
Optional<BackupDescriptor> |
readBackupDescriptor(Path muleDistribution)
Retrieves the backup creation metadata stored in the YAML file within the backup directory location if any has been
previously generated as part of an upgrade process.
|
Optional<BackupDescriptor> readBackupDescriptor(Path muleDistribution) throws IOException
muleDistribution - location of the Mule distribution where backup could reside.Optional of a BackupDescriptor.IOException - In case of any I/O related error while reading the info from the metadata file.void create(MuleDistribution muleDistribution, List<Path> relativePathOfFilesToBeBackedUp) throws IOException
muleDistribution - a MuleDistribution representing the Mule distro where the backup will be taken
from.relativePathOfFilesToBeBackedUp - the list of all relative paths to the Mule distribution that should be backed up.IOException - In case of any I/O related error while creating the backup.void printBackUpDescriptor(Optional<BackupDescriptor> backupDescriptor)
backupDescriptor - BackUp Descriptor selected.Copyright © 2021 MuleSoft, Inc.. All rights reserved.