|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface describes communication module which can be used in SNIFOS application server.
| Method Summary | |
void |
configure(java.util.Properties configuration,
int commModuleId)
Configures instance of CommModule with given parameters. |
void |
disconnectUser(UserId userId)
Disconnects given user from a module. |
void |
sendMessage(UserId userId,
org.dom4j.Document message)
Called by server to send message to user. |
void |
setServer(Server server)
Sets instance of server which will be used to pass messages to applications. |
void |
shutdown()
Stops communication module. |
| Methods inherited from interface java.lang.Runnable |
run |
| Method Detail |
public void configure(java.util.Properties configuration,
int commModuleId)
configuration - Configuration which will be used.commModuleId - Id of this instance of communication module
inside the server - it is necessary to create valid user id.public void setServer(Server server)
server - Server instance.
public void sendMessage(UserId userId,
org.dom4j.Document message)
throws InvalidUserException
userId - Id of user which should receive message.message - Message to be sent.
InvalidUserException - Thrown when user id is invalid for this
communication module instance.public void disconnectUser(UserId userId)
userId - User id.public void shutdown()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||