ibspan.tss.agents.sha.session
Class SessionsMap

java.lang.Object
  extended by ibspan.tss.agents.sha.session.SessionsMap

public class SessionsMap
extends Object

This class provides mapping from sessionID into the Session object.

Author:
Maciej Gawinecki
See Also:
Session

Constructor Summary
SessionsMap()
           
 
Method Summary
 Session createSession(String peerID)
          Creates session on the base of given peerID.
 Session getSession(String sessionID)
          Returnes session bounded with the given sessionID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionsMap

public SessionsMap()
Method Detail

getSession

public Session getSession(String sessionID)
Returnes session bounded with the given sessionID.

Parameters:
sessionID - is id of the session
Returns:
session session matching the given id or null if not found.

createSession

public Session createSession(String peerID)
Creates session on the base of given peerID.

Parameters:
peerID - is ID of machine from which user connects with the system
Returns:
new session