Interface BackupStore
- All Known Implementing Classes:
FileBackupStore,HttpBackupStore,ManagedBackupStore,TimeoutBackupStore
public interface BackupStore
-
Method Summary
Modifier and TypeMethodDescriptionvoidbackupShard(UUID uuid, File source) Backup a shard by copying it to the backup store.booleandeleteShard(UUID uuid) Delete shard from the backup store if it exists.voidrestoreShard(UUID uuid, File target) Restore a shard by copying it from the backup store.booleanshardExists(UUID uuid) Check if a shard exists in the backup store.
-
Method Details
-
backupShard
Backup a shard by copying it to the backup store.- Parameters:
uuid- shard UUIDsource- the source file
-
restoreShard
Restore a shard by copying it from the backup store.- Parameters:
uuid- shard UUIDtarget- the destination file
-
deleteShard
Delete shard from the backup store if it exists.- Parameters:
uuid- shard UUID- Returns:
trueif the shard was deleted;falseif it did not exist
-
shardExists
Check if a shard exists in the backup store.- Parameters:
uuid- shard UUID- Returns:
- if the shard exists
-