Interface BackupProcessManager
-
- All Known Implementing Classes:
BackupProcessManagerImpl
public interface BackupProcessManagerBackup process manager. Could start a backup process or get the current backup process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BackupProcessgetCurrentBackupProcess()Returns the current backup process.BackupProcessstartBackup(BackupConfig config)Starts a new backup process if possible to start it right now, or does nothing if not possible.
-
-
-
Method Detail
-
startBackup
@NotNull BackupProcess startBackup(@Nullable BackupConfig config) throws AccessDeniedException, MaintenanceProcessAlreadyRunningException
Starts a new backup process if possible to start it right now, or does nothing if not possible.- Parameters:
config- backup configuration or null to use the default one.- Returns:
- started backup process.
- Throws:
AccessDeniedException- when the current user is not granted to perform backup.MaintenanceProcessAlreadyRunningException- when another maintenance process is running now.- See Also:
#startBackup(BackupConfig, jetbrains.buildServer.util.Action)
-
getCurrentBackupProcess
@Nullable BackupProcess getCurrentBackupProcess()
Returns the current backup process.- Returns:
- the current backup process or null if backup is not running right now.
-
-