|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BackupperInterface
An interface that represents a backupper for a Gossip Message Server. A backupper is a unit that can save and restore any working data of the server, that is the managed users.
| Method Summary | |
|---|---|
void |
backupUser(ManagedUser usr)
Backups a new user adding it to the backup. |
void |
backupWholeData(java.util.List<ManagedUser> mUsers)
Backups the whole data given as arguments. |
void |
removeBackuppedUser(ManagedUser usr)
Removes a user from the backup. |
int |
restoreData(java.util.List<ManagedUser> restoredUsers)
|
void |
updateUser(ManagedUser newUserStatus)
Replaces the status of a user in the backup or adds the user if it is not backupped. |
| Method Detail |
|---|
void backupWholeData(java.util.List<ManagedUser> mUsers)
throws java.io.IOException
mUsers - the managed users to backup list.
java.io.IOException - if a problem occurred while writing the backup.
int restoreData(java.util.List<ManagedUser> restoredUsers)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.IllegalArgumentException
restoredUsers - an empty list where restored users will be stored.
java.io.IOException - if a problem occurred while reading the backup.
java.lang.ClassNotFoundException - if the read object class is not recognized.
java.lang.IllegalArgumentException - if the list given as argument is not empty or is null.
void updateUser(ManagedUser newUserStatus)
throws java.io.IOException
newUserStatus - the new user status.
java.io.IOException - if a problem occurred while reading or writing the backup (broken data, incorrect version).
void backupUser(ManagedUser usr)
throws java.io.IOException
usr - the user to backup
java.io.IOException - if the user addition failed (broken old backup, not enought space left, ...).
void removeBackuppedUser(ManagedUser usr)
throws java.io.IOException
usr - the user to delete (only the nickname is considered).
java.io.IOException - if the user deletion failed (user was not present, i/o error, ...)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||