@InterfaceAudience.Private @InterfaceStability.Evolving public class MapReduceBackupCopyService extends Object implements BackupCopyService
BackupCopyService.Type| Constructor and Description |
|---|
MapReduceBackupCopyService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCopyJob(String jobId)
Cancel copy job
|
int |
copy(BackupInfo context,
BackupManager backupManager,
Configuration conf,
BackupCopyService.Type copyType,
String[] options)
Do backup copy based on different types.
|
Configuration |
getConf() |
float |
getSubTaskPercntgInWholeTask()
Get the current copy task percentage within the whole task if multiple copies are needed.
|
void |
setConf(Configuration conf) |
void |
setSubTaskPercntgInWholeTask(float subTaskPercntgInWholeTask)
Set the current copy task percentage within the whole task if multiple copies are needed.
|
public Configuration getConf()
public void setConf(Configuration conf)
public float getSubTaskPercntgInWholeTask()
public void setSubTaskPercntgInWholeTask(float subTaskPercntgInWholeTask)
#copy(BackupHandler, Configuration, Type, String[])subTaskPercntgInWholeTask - The percentage of the copy subtaskpublic int copy(BackupInfo context, BackupManager backupManager, Configuration conf, BackupCopyService.Type copyType, String[] options) throws IOException
copy in interface BackupCopyServicecontext - The backup contextconf - The hadoop configurationcopyType - The backup copy typeoptions - Options for customized ExportSnapshot or DistCpbackupManager - - managerException - exceptionIOExceptionpublic void cancelCopyJob(String jobId) throws IOException
BackupCopyServicecancelCopyJob in interface BackupCopyServicejobId - - copy job handlerIOException