com.h3c.sdn.adm.backup

## Class BackupTeamProxy

- java.lang.Object
- - com.h3c.sdn.adm.backup.BackupTeamProxy

- All Implemented Interfaces:
    BackupService

      public class BackupTeamProxy
      extends Object
      implements BackupService

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BackupTeamProxy(SystemInformationService sis, BackupTransferService bts, AuditLogService als, TaskExecutorService teService, AdminRest adminRestClient)` Constructor providing the needed service implementations.

  - ### Method Summary

    Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BackupTeamProxy

          public BackupTeamProxy(SystemInformationService sis,
                         BackupTransferService bts,
                         AuditLogService als,
                         TaskExecutorService teService,
                         AdminRest adminRestClient)

      Constructor providing the needed service implementations.
      Parameters:
        `sis` - the system information manager implementation
        `bts` - the backup transfer service implementation
        `als` - the audit log service implementation
        `teService` - the task executor service implementation
        `adminRestClient` - the admin rest sideways impl

  - ### Method Detail

    - #### setDelegateService

          protected void setDelegateService(BackupServer backupServer)

    - #### startSystemBackup

          public Token startSystemBackup(String systemId,
                                Authentication auth)

      Description copied from interface: `BackupService`
      Backup controller system.
      Specified by:
        `startSystemBackup` in interface `BackupService`
      Parameters:
        `systemId` - the system unique Id
        `auth` - the authentication record for the user that invoked this method
      Returns:
        Token instance

    - #### getBackupStatus

          public BackupStatus getBackupStatus(Token token,
                                     Authentication auth)

      Description copied from interface: `BackupService`
      Get backup status.
      Specified by:
        `getBackupStatus` in interface `BackupService`
      Parameters:
        `token` - Token instance
        `auth` - the authentication record for the user that invoked this method
      Returns:
        BackupStatus instance

    - #### downloadBackup

          public File downloadBackup(String systemId,
                            boolean csum,
                            Authentication auth)

      Description copied from interface: `BackupService`
      Download backup to a safe location
      Specified by:
        `downloadBackup` in interface `BackupService`
      Parameters:
        `systemId` - the unique system id
        `csum` - set to true to download the checksum
        `auth` - the authentication record for the user that invoked this method
      Returns:
        the output stream for the backup/checksum file

    - #### uploadBackup

          public void uploadBackup(String filename,
                          InputStream in,
                          String systemId,
                          Authentication auth)

      Description copied from interface: `BackupService`
      Upload backup to a URL.
      Specified by:
        `uploadBackup` in interface `BackupService`
      Parameters:
        `filename` - filename
        `in` - the input stream
        `systemId` - the unique system id
        `auth` - the authentication record for the user that invoked this method

    - #### startSystemRestore

          public Token startSystemRestore(String systemId,
                                 Authentication auth)

      Description copied from interface: `BackupService`
      Restore controller system.
      Specified by:
        `startSystemRestore` in interface `BackupService`
      Parameters:
        `systemId` - the unique system id
        `auth` - the authentication record for the user that invoked this method
      Returns:
        Token instance

    - #### getLastRestoreInformation

          public BackupInformation getLastRestoreInformation(String systemId,
                                                    Authentication auth)

      Description copied from interface: `BackupService`
      Get last restore information.
      Specified by:
        `getLastRestoreInformation` in interface `BackupService`
      Parameters:
        `systemId` - the unique system id
        `auth` - the authentication record for the user that invoked this method
      Returns:
        BackupInformation instance

Copyright © 2014. All Rights Reserved.