@Service public class DefaultBackupService extends Object implements BackupService
| Constructor and Description |
|---|
DefaultBackupService() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(MuleDistribution muleDistribution,
List<Path> relativePathOfFilesToBeBackedUp)
This function creates the backup descriptor.
|
Clock |
getClock() |
void |
printBackUpDescriptor(Optional<BackupDescriptor> backupDescriptor)
Prints a BackUp Descriptor with a pretty format .
|
Optional<BackupDescriptor> |
readBackupDescriptor(Path muleDistributionHome)
This function reads the backup descriptor.
|
void |
setClock(Clock clock) |
public void create(MuleDistribution muleDistribution, List<Path> relativePathOfFilesToBeBackedUp) throws IOException
create in interface BackupServicemuleDistribution - 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.IOExceptionpublic Optional<BackupDescriptor> readBackupDescriptor(Path muleDistributionHome) throws IOException
readBackupDescriptor in interface BackupServicemuleDistributionHome - location where is the backup descriptor.IOExceptionpublic void printBackUpDescriptor(Optional<BackupDescriptor> backupDescriptor)
printBackUpDescriptor in interface BackupServicebackupDescriptor - BackUp Descriptor selected.public Clock getClock()
public void setClock(Clock clock)
Copyright © 2021 MuleSoft, Inc.. All rights reserved.