Interface BackupCopyJob

All Superinterfaces:
org.apache.hadoop.conf.Configurable
All Known Implementing Classes:
MapReduceBackupCopyJob

@Private public interface BackupCopyJob extends org.apache.hadoop.conf.Configurable
Backup copy job is a part of a backup process. The concrete implementation is responsible for copying data from a cluster to backup destination. Concrete implementation is provided by backup provider, see BackupRestoreFactory
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancel(String jobHandler)
    Cancel copy job
    int
    copy(BackupInfo backupInfo, BackupManager backupManager, org.apache.hadoop.conf.Configuration conf, BackupType backupType, String[] options)
    Copy backup data to destination

    Methods inherited from interface org.apache.hadoop.conf.Configurable

    getConf, setConf
  • Method Details

    • copy

      int copy(BackupInfo backupInfo, BackupManager backupManager, org.apache.hadoop.conf.Configuration conf, BackupType backupType, String[] options) throws IOException
      Copy backup data to destination
      Parameters:
      backupInfo - context object
      backupManager - backup manager
      conf - configuration
      backupType - backup type (FULL or INCREMENTAL)
      options - array of options (implementation-specific)
      Returns:
      result (0 - success, -1 failure )
      Throws:
      IOException - exception
    • cancel

      void cancel(String jobHandler) throws IOException
      Cancel copy job
      Parameters:
      jobHandler - backup copy job handler
      Throws:
      IOException - if cancelling the jobs fails