Class CustomBackupLocationPitrRestoreHandler
java.lang.Object
org.apache.hadoop.hbase.backup.impl.AbstractPitrRestoreHandler
org.apache.hadoop.hbase.backup.impl.CustomBackupLocationPitrRestoreHandler
PITR restore handler that retrieves backup metadata from a custom backup root directory.
This implementation is used when the PITR request specifies a custom backup location via
backupRootDir.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.backup.impl.AbstractPitrRestoreHandler
backupAdmin, conn, request -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected List<PitrBackupMetadata>Retrieves completed backup entries from the given custom backup root directory and converts them intoPitrBackupMetadatausingBackupImageAdapter.Methods inherited from class org.apache.hadoop.hbase.backup.impl.AbstractPitrRestoreHandler
validateAndRestore
-
Constructor Details
-
CustomBackupLocationPitrRestoreHandler
-
-
Method Details
-
getBackupMetadata
protected List<PitrBackupMetadata> getBackupMetadata(PointInTimeRestoreRequest request) throws IOException Retrieves completed backup entries from the given custom backup root directory and converts them intoPitrBackupMetadatausingBackupImageAdapter.- Specified by:
getBackupMetadatain classAbstractPitrRestoreHandler- Parameters:
request- the PITR request- Returns:
- list of completed backup metadata entries from the custom location
- Throws:
IOException- if reading from the custom backup directory fails
-