public class BackupServer extends Object
| Constructor and Description |
|---|
BackupServer(AuditLogService auditLogService,
TaskExecutorService taskExecService,
AdminRest adminRestClient,
SystemInformationService systemInfoService)
BackupServer constructor.
|
| Modifier and Type | Method and Description |
|---|---|
File |
downloadBackup(String backupFolder,
boolean csum,
Authentication auth)
Method to download the backup file from the controller.
|
BackupStatus |
getBackupStatus(Token token,
String fileLoc,
Authentication auth)
Method to query the backup status.
|
BackupInformation |
getLastRestoreInformation(String fileLoc,
Authentication auth)
Get last restore information.
|
Token |
startSystemBackup(Authentication auth)
Backup controller system artifacts.
|
Token |
startSystemRestore(String backupFolder,
Authentication auth)
Method for Restore of a backup file.
|
void |
uploadBackup(String fileName,
InputStream in,
String uploadFolder,
Authentication auth)
Method to upload the backup file to the controller.
|
public BackupServer(AuditLogService auditLogService, TaskExecutorService taskExecService, AdminRest adminRestClient, SystemInformationService systemInfoService)
auditLogService - the audit log service handletaskExecService - the task executor handleadminRestClient - the admin rest handlesystemInfoService - system information service handlepublic Token startSystemBackup(Authentication auth)
auth - the authentication record for the user that
invoked this methodpublic BackupStatus getBackupStatus(Token token, String fileLoc, Authentication auth)
token - the token/session id stringfileLoc - the backup status file locationauth - the authentication record for the user that
invoked this methodpublic File downloadBackup(String backupFolder, boolean csum, Authentication auth)
backupFolder - the backup folder locationcsum - set to true to download the checksumauth - the authentication record for the user that
invoked this methodpublic void uploadBackup(String fileName, InputStream in, String uploadFolder, Authentication auth)
fileName - the upload file namein - the input streamuploadFolder - the upload folderauth - the authentication record for the user that
invoked this methodpublic Token startSystemRestore(String backupFolder, Authentication auth)
backupFolder - the folder where backup file is presentauth - the authentication record for the user that
invoked this methodpublic BackupInformation getLastRestoreInformation(String fileLoc, Authentication auth)
fileLoc - the location of info fileauth - the authentication record for the user that
invoked this methodCopyright © 2014. All Rights Reserved.