Class BackupManager.BackupFilter

  • Enclosing class:
    BackupManager

    public static final class BackupManager.BackupFilter
    extends Object
    Filters the available backups using the provided criteria.
    • Field Detail

      • ALL_BACKUPS

        public static final BackupManager.BackupFilter ALL_BACKUPS
        All the backups will be returned. No filtering will be performed. This will be slow with cloud storage.
    • Constructor Detail

      • BackupFilter

        public BackupFilter​(Collection<BackupId> backupIds,
                            Collection<String> backendNames,
                            Collection<String> serverIds,
                            boolean keepOnlyLastBackupForEachBackend)
        Builds a backup filter instance using the provided criteria.
        Parameters:
        backupIds - the backup ids to keep, if not empty
        backendNames - the backup names to keep, if not empty
        serverIds - backup against these server ids will be kept, if not empty
        keepOnlyLastBackupForEachBackend - whether to retain only the last backup for each backend