@InterfaceAudience.Private @InterfaceStability.Evolving public final class BackupSystemTableHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Delete |
createDeleteForBackupInfo(String backupId)
Creates Delete operation for a given backup id
|
static Get |
createGetForCheckWALFile(String file)
Creates Get operation for a given wal file name
TODO: support for backup destination
|
static List<Put> |
createPutsForAddWALFiles(List<String> files,
String backupId,
String backupRoot)
Creates put list for list of WAL files
|
static Scan |
createScanForGetWALs(String backupRoot)
Creates Scan operation to load WALs
TODO: support for backupRoot
|
public static Delete createDeleteForBackupInfo(String backupId)
backupId
- - backup's IDIOException
- exceptionpublic static List<Put> createPutsForAddWALFiles(List<String> files, String backupId, String backupRoot) throws IOException
files
- list of WAL file pathsbackupId
- backup idIOException
- exceptionpublic static Scan createScanForGetWALs(String backupRoot)
backupRoot
- - path to backup destinationpublic static Get createGetForCheckWALFile(String file) throws IOException
file
- fileIOException
- exception