|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.ors.UserManager
public class UserManager
A manager of the set of connected users (active sessions). It also routes ORS replies to ORS clients.
| Constructor Summary | |
|---|---|
UserManager()
Creates a new user manager. |
|
| Method Summary | |
|---|---|
void |
addSession(ClientSession session)
Adds the given session to the receiver. |
void |
convertAndSend(TradeMessage msg)
Sends the given message to the appropriate sessions managed by the receiver. |
SessionInfo |
getSessionInfo(SessionId sessionId)
Returns the session information associated with the given session ID. |
SessionManager<ClientSession> |
getSessionManager()
Returns the receiver's session manager. |
void |
logStatus()
Logs the receiver's status. |
void |
removedSession(ClientSession session)
Removes the given session from the receiver. |
void |
sync()
Updates the receiver's data structures to reflect the current user definitions in the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserManager()
| Method Detail |
|---|
public SessionManager<ClientSession> getSessionManager()
public void sync()
public void addSession(ClientSession session)
session - The session.public void removedSession(ClientSession session)
session - The session.public SessionInfo getSessionInfo(SessionId sessionId)
sessionId - The session ID.
public void convertAndSend(TradeMessage msg)
msg - The message.public void logStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||