|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorageAgent
Denotes a class that implements a storage agent that can store and retrieve files.
| Method Summary | |
|---|---|
boolean |
delete(java.net.URI uri)
Deletes the indicated backup if it exists. |
boolean |
deleteAll()
Deletes all backups. |
int |
getRetention()
Returns the number of backup files that should be retained before deleting old files. |
StorageSpecification |
getSpecification(java.net.URI uri)
Returns the storage specification of a particular backup or null if no such specification exists. |
java.net.URI |
last()
Returns the URI of the most recent backup in storage or null if no backups exist |
StorageSpecification[] |
list()
Returns the storage specifications of all backups in storage ordered from oldest to most recent. |
BackupSpecification |
retrieve(java.net.URI uri)
Retrieves the backup corresponding to a particular URI. |
void |
setRetention(int numberOfBackups)
Sets the number of backup files to retain. |
java.net.URI |
store(BackupSpecification specification)
Stores a backup described by a particular backup specification, returning the URL of the backup. |
| Methods inherited from interface com.continuent.tungsten.replicator.backup.BackupPlugin |
|---|
configure, release |
| Method Detail |
|---|
int getRetention()
void setRetention(int numberOfBackups)
StorageSpecification[] list()
throws BackupException
BackupException
java.net.URI last()
throws BackupException
BackupException
StorageSpecification getSpecification(java.net.URI uri)
throws BackupException
BackupException
java.net.URI store(BackupSpecification specification)
throws BackupException
BackupException
BackupSpecification retrieve(java.net.URI uri)
throws BackupException
BackupException
boolean delete(java.net.URI uri)
throws BackupException
BackupException
boolean deleteAll()
throws BackupException
BackupException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||