Interface BackupStore

All Known Implementing Classes:
FileBackupStore, HttpBackupStore, ManagedBackupStore, TimeoutBackupStore

public interface BackupStore
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    backupShard(UUID uuid, File source)
    Backup a shard by copying it to the backup store.
    boolean
    Delete shard from the backup store if it exists.
    void
    restoreShard(UUID uuid, File target)
    Restore a shard by copying it from the backup store.
    boolean
    Check if a shard exists in the backup store.
  • Method Details

    • backupShard

      void backupShard(UUID uuid, File source)
      Backup a shard by copying it to the backup store.
      Parameters:
      uuid - shard UUID
      source - the source file
    • restoreShard

      void restoreShard(UUID uuid, File target)
      Restore a shard by copying it from the backup store.
      Parameters:
      uuid - shard UUID
      target - the destination file
    • deleteShard

      boolean deleteShard(UUID uuid)
      Delete shard from the backup store if it exists.
      Parameters:
      uuid - shard UUID
      Returns:
      true if the shard was deleted; false if it did not exist
    • shardExists

      boolean shardExists(UUID uuid)
      Check if a shard exists in the backup store.
      Parameters:
      uuid - shard UUID
      Returns:
      if the shard exists