Class BackupRequestHandler
java.lang.Object
io.camunda.zeebe.gateway.admin.backup.BackupRequestHandler
- All Implemented Interfaces:
BackupApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteBackup(long backupId) Deletes the backup with the given idgetStatus(long backupId) Returns the status of the backup.takeBackup(long backupId) Triggers backup on all partitions.
-
Constructor Details
-
BackupRequestHandler
-
-
Method Details
-
takeBackup
Description copied from interface:BackupApiTriggers backup on all partitions. Returned future is completed successfully after all partitions have processed the request. Returned future fails if the request was not processed by at least one partition.TODO: check if it makes more sense to return a
Futureif we're always blocking on the result and never combining.- Specified by:
takeBackupin interfaceBackupApi- Parameters:
backupId- the id of the backup to be taken- Returns:
- the backupId
-
getStatus
Description copied from interface:BackupApiReturns the status of the backup. The future fails if the request was not processed by at least one partition.TODO: check if it makes more sense to return a
Futureif we're always blocking on the result and never combining. -
listBackups
- Specified by:
listBackupsin interfaceBackupApi- Returns:
- a list of available backups
-
deleteBackup
Description copied from interface:BackupApiDeletes the backup with the given id- Specified by:
deleteBackupin interfaceBackupApi- Parameters:
backupId- id of the backup to delete
-