Class NoopBackupManager
java.lang.Object
io.camunda.zeebe.backup.management.NoopBackupManager
- All Implemented Interfaces:
BackupManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClose Backup managerdeleteBackup(long checkpointId) Deletes the backup.voidfailInProgressBackup(long lastCheckpointId) getBackupStatus(long checkpointId) Get the status of the backupGet all available backups where status is one ofBackupStatusCode.COMPLETED,BackupStatusCode.FAILED,BackupStatusCode.IN_PROGRESSvoidtakeBackup(long checkpointId, long checkpointPosition) Takes backup with id checkpointId.
-
Constructor Details
-
NoopBackupManager
- Parameters:
errorMessage- reason for installing NoopBackupManager. All operations will fail with this message.
-
-
Method Details
-
takeBackup
public void takeBackup(long checkpointId, long checkpointPosition) Description copied from interface:BackupManagerTakes backup with id checkpointId. The method returns immediately after triggering the backup.BackupManager.getBackupStatus(long)must be used to check if the backup is completed or not. If a completed backup with same id already exists, no new backup will be taken.The implementation of this method should be non-blocking to not block the caller.
- Specified by:
takeBackupin interfaceBackupManager- Parameters:
checkpointId- id of the backupcheckpointPosition- position of the record until which must be included in the backup.
-
getBackupStatus
Description copied from interface:BackupManagerGet the status of the backup- Specified by:
getBackupStatusin interfaceBackupManager- Returns:
- backup status
-
listBackups
Description copied from interface:BackupManagerGet all available backups where status is one ofBackupStatusCode.COMPLETED,BackupStatusCode.FAILED,BackupStatusCode.IN_PROGRESS- Specified by:
listBackupsin interfaceBackupManager- Returns:
- a collection of backup status
-
deleteBackup
Description copied from interface:BackupManagerDeletes the backup.- Specified by:
deleteBackupin interfaceBackupManager- Returns:
- future which will be completed after the backup is deleted.
-
closeAsync
Description copied from interface:BackupManagerClose Backup manager- Specified by:
closeAsyncin interfaceBackupManager
-
failInProgressBackup
public void failInProgressBackup(long lastCheckpointId) - Specified by:
failInProgressBackupin interfaceBackupManager
-