|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BackupperInterface
This interface represents a general backupper, witch may be a file backupper, a remote backupper, a RAID-like backupper, or any other kind of service to permanently store datas.
| Method Summary | |
|---|---|
void |
backupMs(ManagedMessageServer ms)
Backup a single server data. |
void |
backupUser(RegisteredUser reg)
Backup a single user data. |
void |
backupWholeData(java.util.List<RegisteredUser> rUsers,
java.util.List<ManagedMessageServer> mMss)
Backups the whole data given by argument replacing completely the previous backups. |
void |
removeBackuppedMs(ManagedMessageServer ms)
Remove a server contained in the backup. |
void |
removeBackuppedUser(RegisteredUser reg)
Remove a user contained in the backup. |
int |
restoreData(java.util.List<RegisteredUser> restoredUsers,
java.util.List<ManagedMessageServer> restoredMss)
|
| Method Detail |
|---|
void backupWholeData(java.util.List<RegisteredUser> rUsers,
java.util.List<ManagedMessageServer> mMss)
throws java.io.IOException
rUsers - the list of registered users to backup.mMss - the list of managed message servers to backup.
java.io.IOException - if an Input/Output problem occurred.
int restoreData(java.util.List<RegisteredUser> restoredUsers,
java.util.List<ManagedMessageServer> restoredMss)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.io.InvalidClassException,
java.io.StreamCorruptedException,
java.io.OptionalDataException,
java.lang.IllegalArgumentException
restoredUsers - a list where the restored users data must be copied to.restoredMss - a list where the restored servers data must be copied to.
java.io.IOException - if an Input/Output problem occurred.
java.lang.ClassNotFoundException - if a version compatibility problem occurred.
java.io.InvalidClassException - if a version compatibility problem occurred.
java.io.StreamCorruptedException - if the input stream could not be read.
java.io.OptionalDataException - if the backupped datas were not expected.
java.lang.IllegalArgumentException - if the lists given by argument are null or not empty.
void backupUser(RegisteredUser reg)
throws java.io.IOException,
java.io.FileNotFoundException
reg - the user whose data must be backupped.
java.io.IOException - if an error occured while writing.
java.io.FileNotFoundException
void backupMs(ManagedMessageServer ms)
throws java.io.IOException
ms - the server whose data must be backupped.
java.io.IOException - if an error occured while writing.
void removeBackuppedUser(RegisteredUser reg)
throws java.io.IOException
reg - the user to remove.
java.io.IOException - if an InputOutput exception occurred.
void removeBackuppedMs(ManagedMessageServer ms)
throws java.io.IOException
ms - the server to remove.
java.io.IOException - if an InputOutput exception occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||