org.neodatis.odb.impl.core.server.transaction
Class SessionManager

java.lang.Object
  extended by org.neodatis.odb.impl.core.server.transaction.SessionManager
All Implemented Interfaces:
ITwoPhaseInit, ISessionManager

public class SessionManager
extends java.lang.Object
implements ISessionManager


Field Summary
static java.lang.String LOG_ID
           
protected  java.util.Map<java.lang.String,ISession> sessions
           
 
Constructor Summary
SessionManager()
           
 
Method Summary
 void addSession(ISession session)
           
 long getNumberOfSessions()
           
 ISession getSession(java.lang.String baseIdentification, boolean throwExceptionIfDoesNotExist)
           
 java.util.List<java.lang.String> getSessionDescriptions(java.util.Map connectionManagers)
           
 void init2()
          The second init phase
 void removeSession(java.lang.String baseIdentification)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG_ID

public static final java.lang.String LOG_ID
See Also:
Constant Field Values

sessions

protected java.util.Map<java.lang.String,ISession> sessions
Constructor Detail

SessionManager

public SessionManager()
Method Detail

init2

public void init2()
Description copied from interface: ITwoPhaseInit
The second init phase

Specified by:
init2 in interface ITwoPhaseInit

getSession

public ISession getSession(java.lang.String baseIdentification,
                           boolean throwExceptionIfDoesNotExist)
Specified by:
getSession in interface ISessionManager

addSession

public void addSession(ISession session)
Specified by:
addSession in interface ISessionManager

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

removeSession

public void removeSession(java.lang.String baseIdentification)
Specified by:
removeSession in interface ISessionManager

getSessionDescriptions

public java.util.List<java.lang.String> getSessionDescriptions(java.util.Map connectionManagers)
Specified by:
getSessionDescriptions in interface ISessionManager

getNumberOfSessions

public long getNumberOfSessions()
Specified by:
getNumberOfSessions in interface ISessionManager