|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MSForBSInterface
This interface represents the method that a Gossip Message Server must provide to let a Bootstrap work.
| Method Summary | |
|---|---|
void |
assign(java.lang.String MSPw,
User user,
java.lang.String userPw)
Assigns a new user to the message server. |
void |
blockAssignation(java.lang.String MSPw,
boolean status)
Puts the MS in the 'blocked' or 'unblocked' status, depending on the boolean status given by argument. |
void |
deleteUserAdmin(User nick,
java.lang.String MSpw)
Deletes a user. |
Statistics |
getStatistics(java.lang.String globalpw)
Returns the statistics of the message server. |
java.util.Vector<User> |
getUsersList(java.lang.String globalpw)
Returns the list of users managed by the Message Server. |
void |
moveUser(java.lang.String MSPw,
User user,
MessageServer ms)
Moves a user assignation from the message server to the specified one. |
void |
shutdown(java.lang.String MSPw)
Shuts down the MS server. |
boolean |
testPassword(java.lang.String pw)
Tests a message server administration password. |
void |
testPresence()
Tests the presence of a Message Server |
| Method Detail |
|---|
void testPresence()
throws java.rmi.RemoteException
java.rmi.RemoteException - if the server could not be reached.
void deleteUserAdmin(User nick,
java.lang.String MSpw)
throws java.rmi.RemoteException,
WrongPasswordException,
BlockedException,
UserNotManagedException
nick - the user to delete.MSpw - the Message Server administration password.
java.rmi.RemoteException - if a communication problem with the server occurred.
WrongPasswordException - if the password is not right.
BlockedException - if the MS is currently blocked.
UserNotManagedException - if the specified user is not managed by the Message server.
void blockAssignation(java.lang.String MSPw,
boolean status)
throws java.rmi.RemoteException,
WrongPasswordException
MSPw - the MS administration password.status - true if the status must be set to 'blocked', false if the status must be set to 'unblocked'.
java.rmi.RemoteException - if a communication problem occurs.
WrongPasswordException - if the password is wrong.
void moveUser(java.lang.String MSPw,
User user,
MessageServer ms)
throws java.rmi.RemoteException,
WrongPasswordException,
UserNotManagedException,
AssignationNotAcceptedException,
GenericErrorException
MSPw - the message server password.user - the user to move.ms - the message server to move the user to.
java.rmi.RemoteException - if a communication problem occurs.
WrongPasswordException - id the MS admin password is wrong.
UserNotManagedException - if the user is not managed by this MS (or does not exists).
AssignationNotAcceptedException - if the MS the user was wanted to be moved to refused the assignation (i.e. is blocked).
GenericErrorException - if a communication problem with the second MS occurred.
Statistics getStatistics(java.lang.String globalpw)
throws java.rmi.RemoteException,
WrongPasswordException
globalpw - the MS password
java.rmi.RemoteException - if a communcation problem occurs.
WrongPasswordException - if the administration password is wrong.
void shutdown(java.lang.String MSPw)
throws java.rmi.RemoteException,
WrongPasswordException,
UsersStillPresentException,
BlockedException
MSPw - the Message Server password.
java.rmi.RemoteException - if there was a communication error or the MS was correctly shutdown.
WrongPasswordException - if the password is wrong.
UsersStillPresentException - if the Message Server still manages some users.
BlockedException - if the Message Server is not blocked.
void assign(java.lang.String MSPw,
User user,
java.lang.String userPw)
throws java.rmi.RemoteException,
BlockedException,
WrongPasswordException
MSPw - the MS password.user - the user to adduserPw - the user password
BlockedException - if the server is blocked and does not accept new users.
WrongPasswordException - if the Message Server Password is wrong.
java.rmi.RemoteException - if a communication problem occurs.
java.util.Vector<User> getUsersList(java.lang.String globalpw)
throws java.rmi.RemoteException,
WrongPasswordException
globalpw - the MS password
WrongPasswordException - if the password is wrong.
java.rmi.RemoteException - if a communication problem occurs.
boolean testPassword(java.lang.String pw)
throws java.rmi.RemoteException
pw - the password to check
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||