public class BackupTeamProxy extends Object implements BackupService
| Constructor and Description |
|---|
BackupTeamProxy(SystemInformationService sis,
BackupTransferService bts,
AuditLogService als,
TaskExecutorService teService,
AdminRest adminRestClient)
Constructor providing the needed service implementations.
|
| Modifier and Type | Method and Description |
|---|---|
File |
downloadBackup(String systemId,
boolean csum,
Authentication auth)
Download backup to a safe location
|
BackupStatus |
getBackupStatus(Token token,
Authentication auth)
Get backup status.
|
BackupInformation |
getLastRestoreInformation(String systemId,
Authentication auth)
Get last restore information.
|
protected void |
setDelegateService(BackupServer backupServer) |
Token |
startSystemBackup(String systemId,
Authentication auth)
Backup controller system.
|
Token |
startSystemRestore(String systemId,
Authentication auth)
Restore controller system.
|
void |
uploadBackup(String filename,
InputStream in,
String systemId,
Authentication auth)
Upload backup to a URL.
|
public BackupTeamProxy(SystemInformationService sis, BackupTransferService bts, AuditLogService als, TaskExecutorService teService, AdminRest adminRestClient)
sis - the system information manager implementationbts - the backup transfer service implementationals - the audit log service implementationteService - the task executor service implementationadminRestClient - the admin rest sideways implprotected void setDelegateService(BackupServer backupServer)
public Token startSystemBackup(String systemId, Authentication auth)
BackupServicestartSystemBackup in interface BackupServicesystemId - the system unique Idauth - the authentication record for the user that
invoked this methodpublic BackupStatus getBackupStatus(Token token, Authentication auth)
BackupServicegetBackupStatus in interface BackupServicetoken - Token instanceauth - the authentication record for the user that
invoked this methodpublic File downloadBackup(String systemId, boolean csum, Authentication auth)
BackupServicedownloadBackup in interface BackupServicesystemId - the unique system idcsum - set to true to download the checksumauth - the authentication record for the user that
invoked this methodpublic void uploadBackup(String filename, InputStream in, String systemId, Authentication auth)
BackupServiceuploadBackup in interface BackupServicefilename - filenamein - the input streamsystemId - the unique system idauth - the authentication record for the user that
invoked this methodpublic Token startSystemRestore(String systemId, Authentication auth)
BackupServicestartSystemRestore in interface BackupServicesystemId - the unique system idauth - the authentication record for the user that
invoked this methodpublic BackupInformation getLastRestoreInformation(String systemId, Authentication auth)
BackupServicegetLastRestoreInformation in interface BackupServicesystemId - the unique system idauth - the authentication record for the user that
invoked this methodCopyright © 2014. All Rights Reserved.