Uses of Class
org.apache.hadoop.hbase.backup.BackupInfo
Package
Description
-
Uses of BackupInfo in org.apache.hadoop.hbase.backup
Modifier and TypeMethodDescriptionstatic BackupInfo
BackupInfo.fromByteArray
(byte[] data) static BackupInfo
BackupInfo.fromProto
(org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.BackupInfo proto) static BackupInfo
BackupInfo.fromStream
(InputStream stream) BackupAdmin.getBackupInfo
(String backupId) Describe backup image commandModifier and TypeMethodDescriptionBackupAdmin.getHistory
(int n) Show backup history commandBackupAdmin.getHistory
(int n, BackupInfo.Filter... f) Show backup history command with filtersModifier and TypeMethodDescriptionboolean
BackupInfo.Filter.apply
(BackupInfo info) Filter interfaceint
BackupInfo.compareTo
(BackupInfo o) We use only time stamps to compare objects during sort operationint
BackupCopyJob.copy
(BackupInfo backupInfo, BackupManager backupManager, org.apache.hadoop.conf.Configuration conf, BackupType backupType, String[] options) Copy backup data to destination -
Uses of BackupInfo in org.apache.hadoop.hbase.backup.impl
Modifier and TypeFieldDescriptionprotected BackupInfo
BackupManager.backupInfo
protected BackupInfo
TableBackupClient.backupInfo
private BackupInfo
BackupException.info
Modifier and TypeMethodDescriptionprivate BackupInfo
BackupSystemTable.cellToBackupInfo
(Cell current) Converts cell to backup info instance.BackupManager.createBackupInfo
(String backupId, BackupType type, List<TableName> tableList, String targetRootDir, int workers, long bandwidth, boolean noChecksumVerify) Creates a backup info based on input backup request.BackupAdminImpl.getBackupInfo
(String backupId) BackupException.getBackupInfo()
protected BackupInfo
BackupManager.getBackupInfo()
Returns backup infoBackupSystemTable.readBackupInfo
(String backupId) Reads backup status object (instance of backup info) from backup system table tableprivate BackupInfo
BackupSystemTable.resultToBackupInfo
(Result res) Converts Result to BackupInfoBackupManifest.toBackupInfo()
Modifier and TypeMethodDescriptionprivate List<BackupInfo>
BackupAdminImpl.getAffectedBackupSessions
(BackupInfo backupInfo, TableName tn, BackupSystemTable table) BackupManager.getBackupHistory()
Get all completed backup information (in desc order by time)BackupManager.getBackupHistory
(boolean completed) BackupSystemTable.getBackupHistory()
Get all backups historyBackupSystemTable.getBackupHistory
(boolean onlyCompleted) Get all completed backup information (in desc order by time)BackupSystemTable.getBackupHistory
(int n, BackupInfo.Filter... filters) Get backup history records filtered by list of filters.BackupSystemTable.getBackupHistory
(String backupRoot) Get history for backup destinationBackupSystemTable.getBackupHistoryForTable
(TableName name) Get history for a tableBackupSystemTable.getBackupHistoryForTableSet
(Set<TableName> set, String backupRoot) Goes through all backup history corresponding to the provided root folder, and collects all backup info mentioning each of the provided tables.BackupSystemTable.getBackupInfos
(BackupInfo.BackupState state) Get all backup sessions with a given state (in descending order by time)BackupAdminImpl.getHistory
(int n) BackupAdminImpl.getHistory
(int n, BackupInfo.Filter... filters) BackupSystemTable.getHistory
(int n) Get first n backup history recordsModifier and TypeMethodDescriptionprotected void
TableBackupClient.addManifest
(BackupInfo backupInfo, BackupType type, org.apache.hadoop.conf.Configuration conf) Creates a manifest based on the provided info, and store it in the backup-specific directory.protected void
TableBackupClient.beginBackup
(BackupManager backupManager, BackupInfo backupInfo) Begin the overall backup.static void
TableBackupClient.cleanupAndRestoreBackupSystem
(Connection conn, BackupInfo backupInfo, org.apache.hadoop.conf.Configuration conf) private void
BackupAdminImpl.cleanupBackupDir
(BackupInfo backupInfo, TableName table, org.apache.hadoop.conf.Configuration conf) Clean up the data at target directoryprotected static void
TableBackupClient.cleanupTargetDir
(BackupInfo backupInfo, org.apache.hadoop.conf.Configuration conf) Clean up the uncompleted data at target directory if the ongoing backup has already entered the copy phase.protected void
TableBackupClient.completeBackup
(Connection conn, BackupInfo backupInfo, BackupType type, org.apache.hadoop.conf.Configuration conf) Complete the overall backup.private Put
BackupSystemTable.createPutForBackupInfo
(BackupInfo context) Creates Put operation for a given backup info objectprotected static void
TableBackupClient.deleteSnapshots
(Connection conn, BackupInfo backupInfo, org.apache.hadoop.conf.Configuration conf) Delete HBase snapshot for backup.protected void
TableBackupClient.failBackup
(Connection conn, BackupInfo backupInfo, BackupManager backupManager, Exception e, String msg, BackupType type, org.apache.hadoop.conf.Configuration conf) Fail the overall backup.private List<BackupInfo>
BackupAdminImpl.getAffectedBackupSessions
(BackupInfo backupInfo, TableName tn, BackupSystemTable table) protected List<BackupManifest.BackupImage>
TableBackupClient.getAncestors
(BackupInfo backupInfo) Gets the direct ancestors of the currently being created backup.protected String
TableBackupClient.obtainBackupMetaDataStr
(BackupInfo backupInfo) Get backup request meta data dir as string.private void
BackupAdminImpl.removeTableFromBackupImage
(BackupInfo info, TableName tn, BackupSystemTable sysTable) void
BackupManager.setBackupInfo
(BackupInfo backupInfo) protected void
FullTableBackupClient.snapshotCopy
(BackupInfo backupInfo) Do snapshot copy.void
BackupManager.updateBackupInfo
(BackupInfo context) Updates status (state) of a backup session in a persistent storevoid
BackupSystemTable.updateBackupInfo
(BackupInfo info) Updates status (state) of a backup session in backup system table tableModifier and TypeMethodDescriptionprivate String[]
BackupCommands.DeleteCommand.convertToBackupIds
(List<BackupInfo> history) ModifierConstructorDescriptionBackupException
(String msg, Throwable cause, BackupInfo desc) Exception for the given backup due to another exceptionBackupException
(String msg, BackupInfo desc) Exception for the given backup that has no previous root causeBackupManifest
(BackupInfo backup) Construct manifest for a ongoing backup.BackupManifest
(BackupInfo backup, TableName table) Construct a table level manifest for a backup of the named table. -
Uses of BackupInfo in org.apache.hadoop.hbase.backup.mapreduce
Modifier and TypeFieldDescriptionprivate BackupInfo
MapReduceBackupCopyJob.BackupDistCp.backupInfo
private BackupInfo
MapReduceBackupCopyJob.SnapshotCopy.backupInfo
Modifier and TypeMethodDescriptionint
MapReduceBackupCopyJob.copy
(BackupInfo context, BackupManager backupManager, org.apache.hadoop.conf.Configuration conf, BackupType copyType, String[] options) Do backup copy based on different types.(package private) static void
MapReduceBackupCopyJob.updateProgress
(BackupInfo backupInfo, BackupManager backupManager, int newProgress, long bytesCopied) Update the ongoing backup with new progress.ModifierConstructorDescriptionBackupDistCp
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.tools.DistCpOptions options, BackupInfo backupInfo, BackupManager backupManager) SnapshotCopy
(BackupInfo backupInfo, TableName table) -
Uses of BackupInfo in org.apache.hadoop.hbase.backup.master
Modifier and TypeMethodDescriptionBackupLogCleaner.serverToPreservationBoundaryTs
(List<BackupInfo> backups) Calculates the timestamp boundary up to which all backup roots have already included the WAL. -
Uses of BackupInfo in org.apache.hadoop.hbase.backup.util
Modifier and TypeMethodDescriptionstatic BackupInfo
BackupUtils.loadBackupInfo
(org.apache.hadoop.fs.Path backupRootPath, String backupId, org.apache.hadoop.fs.FileSystem fs) Modifier and TypeMethodDescriptionstatic List<BackupInfo>
BackupUtils.getHistory
(org.apache.hadoop.conf.Configuration conf, int n, org.apache.hadoop.fs.Path backupRootPath, BackupInfo.Filter... filters) private static List<BackupInfo>
BackupUtils.getHistory
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path backupRootPath) static ArrayList<BackupInfo>
BackupUtils.sortHistoryListDesc
(ArrayList<BackupInfo> historyList) Sort history list by start time in descending order.Modifier and TypeMethodDescriptionstatic void
BackupUtils.cleanupBackupData
(BackupInfo context, org.apache.hadoop.conf.Configuration conf) private static void
BackupUtils.cleanupHLogDir
(BackupInfo backupInfo, org.apache.hadoop.conf.Configuration conf) Clean up directories which are generated when DistCp copying hlogsprivate static void
BackupUtils.cleanupTargetDir
(BackupInfo backupInfo, org.apache.hadoop.conf.Configuration conf) static void
BackupUtils.copyTableRegionInfo
(Connection conn, BackupInfo backupInfo, org.apache.hadoop.conf.Configuration conf) copy out Table RegionInfo into incremental backup image need to consider move this logic into HBackupFileSystemModifier and TypeMethodDescriptionstatic ArrayList<BackupInfo>
BackupUtils.sortHistoryListDesc
(ArrayList<BackupInfo> historyList) Sort history list by start time in descending order.