Package org.apache.hadoop.hbase.backup
Interface BackupCopyJob
- All Superinterfaces:
org.apache.hadoop.conf.Configurable
- All Known Implementing Classes:
MapReduceBackupCopyJob
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 TypeMethodDescriptionvoid
Cancel copy jobint
copy
(BackupInfo backupInfo, BackupManager backupManager, org.apache.hadoop.conf.Configuration conf, BackupType backupType, String[] options) Copy backup data to destinationMethods 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 objectbackupManager
- backup managerconf
- configurationbackupType
- backup type (FULL or INCREMENTAL)options
- array of options (implementation-specific)- Returns:
- result (0 - success, -1 failure )
- Throws:
IOException
- exception
-
cancel
Cancel copy job- Parameters:
jobHandler
- backup copy job handler- Throws:
IOException
- if cancelling the jobs fails
-