|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MSForMSInterface
This interface provides the methods that the object exported by a Message Server must provide to let another Message Server communicate with it.
| Method Summary | |
|---|---|
void |
assignMovedUser(ManagedUser user)
Assigns a user management (sending all its datas) to the message server. |
void |
forwardMessage(Message msg)
Forwards a message from a Message Server to this one. |
User |
getManagedUserContact(User user)
Gets a User IP address and TCP port to directely connect to its servlet. |
boolean |
inListOfUserContains(User listUser,
User user)
Checks whether or not a user (U1) accepts messages sent from another user (U2) |
| Method Detail |
|---|
void forwardMessage(Message msg)
throws java.rmi.RemoteException,
NotAllowedException,
UserNotManagedException,
GenericErrorException,
UserNotExistsException,
SystemErrorException
msg - the message to forward.
java.rmi.RemoteException - if a communication problem occurs.
NotAllowedException - if the recipint does not accept messages from the sender.
UserNotManagedException - id the recipient user is not assigned to this MS.
GenericErrorException - if a generic error occurred.
UserNotExistsException - if the user does not exist in the whole system.
SystemErrorException - if a system error occurred.
boolean inListOfUserContains(User listUser,
User user)
throws java.rmi.RemoteException,
UserNotManagedException
listUser - the receiver user (U1)user - the sender user (U2)
java.rmi.RemoteException - if a communication problem occurred.
UserNotManagedException - if the listUser (U1) is not managed by the server.
void assignMovedUser(ManagedUser user)
throws java.rmi.RemoteException,
AssignationNotAcceptedException
user - the user to assign.
AssignationNotAcceptedException - if the assignation was not accepted.
java.rmi.RemoteException - if a communication problem occurred.
User getManagedUserContact(User user)
throws java.rmi.RemoteException,
UserNotManagedException
user - the user whose connection datas is wanted. Only the nickname is considered.
java.rmi.RemoteException - if a communication problem occurs.
UserNotManagedException - if the user is not locally managed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||