Class DBBackupRestoreClient
java.lang.Object
com.salesforce.multicloudj.dbbackuprestore.client.DBBackupRestoreClient
- All Implemented Interfaces:
AutoCloseable
Client for performing database backup and restore operations across multiple cloud providers.
This class provides a cloud-agnostic interface for backup and restore operations.
- Since:
- 0.2.25
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for constructing DBBackupRestoreClient instances. -
Constructor Summary
ConstructorsConstructorDescriptionDBBackupRestoreClient(AbstractDBBackupRestore dbBackupRestore) Creates a new DBBackupRestoreClient wrapping the given driver. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder for constructing a DBBackupRestoreClient.voidclose()Gets details of a specific backup by its ID.getRestoreJob(String restoreId) Gets details of a specific restore operation by its ID.Lists all available backups for the current table.restoreBackup(RestoreRequest request) Restores a table from a backup.
-
Constructor Details
-
DBBackupRestoreClient
Creates a new DBBackupRestoreClient wrapping the given driver.- Parameters:
dbBackupRestore- the database backup restore driver implementation
-
-
Method Details
-
builder
Creates a new builder for constructing a DBBackupRestoreClient.- Parameters:
providerId- the cloud provider identifier- Returns:
- a new ClientBuilder instance
-
listBackups
Lists all available backups for the current table.- Returns:
- a list of Backup objects representing available backups
-
getBackup
Gets details of a specific backup by its ID.- Parameters:
backupId- the unique identifier of the backup- Returns:
- the Backup object with full metadata
-
restoreBackup
Restores a table from a backup. The restore operation may take time depending on the backup size and is async request.- Parameters:
request- the restore request containing restore configuration- Returns:
- the unique identifier of the restore operation for status tracking
-
getRestoreJob
Gets details of a specific restore operation by its ID.- Parameters:
restoreId- the unique identifier of the restore operation- Returns:
- the Restore object with full metadata
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-