All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.camunda.zeebe.gateway.admin.backup.BackupApi Maven / Gradle / Ivy

There is a newer version: 8.6.0-alpha5
Show newest version
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Licensed under the Camunda License 1.0. You may not use this file
 * except in compliance with the Camunda License 1.0.
 */
package io.camunda.zeebe.gateway.admin.backup;

import java.util.List;
import java.util.concurrent.CompletionStage;

public interface BackupApi {

  /**
   * Triggers 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 {@link java.util.concurrent.Future} if we're * always blocking on the result and never combining. * * @param backupId the id of the backup to be taken * @return the backupId */ CompletionStage takeBackup(long backupId); /** * Returns 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 {@link java.util.concurrent.Future} if we're * always blocking on the result and never combining. * * @return the status of the backup */ CompletionStage getStatus(long backupId); /** * @return a list of available backups */ CompletionStage> listBackups(); /** * Deletes the backup with the given id * * @param backupId id of the backup to delete */ CompletionStage deleteBackup(long backupId); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy