@Service public class BackupRestoreComponent extends Object implements BackupService
| Modifier and Type | Field and Description |
|---|---|
protected AuditLogService |
auditLogService |
protected BackupTransferService |
bts |
protected SystemInformationService |
systemInformationService |
| Constructor and Description |
|---|
BackupRestoreComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
protected void |
bindAdminRest(AdminRest s)
Hook for notification of available
AdminRest via declarative
services which handles alert notifications. |
protected void |
bindAuditLogService(AuditLogService service)
Hook for binding to an implementation of the
AuditLogService
via declarative services. |
protected void |
bindBackupTransferService(BackupTransferService srv)
Hook for binding to an implementation of the
BackupTransferService via OSGi declarative services. |
protected void |
bindSystemInformationService(SystemInformationService srv)
Hook for binding to an implementation of the
SystemInformationService via declarative services. |
protected void |
bindTaskExecutorService(TaskExecutorService service)
Hook for binding to an implementation of the
TaskExecutorService
via declarative services. |
void |
deactivate() |
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(BackupService backupService) |
Token |
startSystemBackup(String systemId,
Authentication auth)
Backup controller system.
|
Token |
startSystemRestore(String systemId,
Authentication auth)
Restore controller system.
|
protected void |
unbindAdminRest(AdminRest s)
Hook for notification of removal of
AdminRest via declarative
services. |
protected void |
unbindAuditLogService(AuditLogService service)
Hook for removing the binding to the deactivated
AuditLogService via declarative services. |
protected void |
unbindBackupTransferService(BackupTransferService srv)
Hook for removing the binding to the deactivated
BackupTransferService via declarative services. |
protected void |
unbindSystemInformationService(SystemInformationService srv)
Hook for removing the binding to the deactivated
SystemInformationService via declarative services. |
protected void |
unbindTaskExecutorService(TaskExecutorService service)
Hook for removing the binding to the deactivated
TaskExecutorService via declarative services. |
void |
uploadBackup(String filename,
InputStream in,
String systemId,
Authentication auth)
Upload backup to a URL.
|
@Reference(policy=DYNAMIC,
cardinality=OPTIONAL_UNARY)
protected volatile SystemInformationService systemInformationService
@Reference(policy=DYNAMIC,
cardinality=OPTIONAL_UNARY)
protected volatile AuditLogService auditLogService
@Reference(name="BackupTransferService",
policy=DYNAMIC,
cardinality=OPTIONAL_UNARY)
protected volatile BackupTransferService bts
@Activate public void activate()
@Deactivate public void deactivate()
protected void bindTaskExecutorService(TaskExecutorService service)
TaskExecutorService
via declarative services.service - newly advertised serviceprotected void unbindTaskExecutorService(TaskExecutorService service)
TaskExecutorService via declarative services.service - deactivated serviceprotected void bindSystemInformationService(SystemInformationService srv)
SystemInformationService via declarative services.srv - newly advertised serviceprotected void unbindSystemInformationService(SystemInformationService srv)
SystemInformationService via declarative services.srv - deactivated serviceprotected void bindAuditLogService(AuditLogService service)
AuditLogService
via declarative services.service - newly advertised serviceprotected void unbindAuditLogService(AuditLogService service)
AuditLogService via declarative services.service - deactivated serviceprotected void bindBackupTransferService(BackupTransferService srv)
BackupTransferService via OSGi declarative services.srv - the newly advertised service to registerprotected void unbindBackupTransferService(BackupTransferService srv)
BackupTransferService via declarative services.srv - deactivated serviceprotected void bindAdminRest(AdminRest s)
AdminRest via declarative
services which handles alert notifications.s - newly advertised serviceprotected void unbindAdminRest(AdminRest s)
AdminRest via declarative
services.s - deactivated serviceprotected void setDelegateService(BackupService backupService)
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.