|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.agent.session.SessionManager
public class SessionManager
Manages A-Select Agent sessions.
Description:
Provides methods for managing sessions:
StorageManager
.
Field Summary | |
---|---|
static java.lang.String |
MODULE
The MODULE name. |
Method Summary | |
---|---|
boolean |
createSession(java.lang.String sSessionId,
java.util.Hashtable htSessionContext)
Create a session. |
static SessionManager |
getHandle()
Get a static handle to the SessionManager instance. |
java.util.Hashtable |
getSessionContext(java.lang.String sSessionId)
Get the session context of a session. |
java.util.Hashtable |
getSessionContexts()
Retrieve all session contexts. |
long |
getSessionsCounter()
Get the number of issued sessions since startup. |
long |
getSessionTimeout(java.lang.String sSessionId)
Returns then session timeout. |
boolean |
init()
Initializes the SessionManager . |
void |
killSession(java.lang.String sSessionId)
Kill a session. |
void |
stop()
Stop the SessionManager . |
boolean |
updateSessionContext(java.lang.String sSessionId,
java.util.Hashtable htSessionContext)
Update a session context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MODULE
Method Detail |
---|
public static SessionManager getHandle()
SessionManager
instance.
SessionManager
exists.
SessionManager
public boolean init()
SessionManager
.
public void stop()
SessionManager
.
SessionManager
has stopped.
public boolean createSession(java.lang.String sSessionId, java.util.Hashtable htSessionContext)
sSessionId != null
htSessionContext != null
sSessionId
- The id of the session.htSessionContext
- The contents of the session (context).
public void killSession(java.lang.String sSessionId)
sSessionId != null
sSessionId
- The ID of the session to be removed.public boolean updateSessionContext(java.lang.String sSessionId, java.util.Hashtable htSessionContext)
sSessionId != null
htSessionContext != null
sSessionId
- The ID of the session.htSessionContext
- The new session context.
public long getSessionsCounter()
public java.util.Hashtable getSessionContext(java.lang.String sSessionId)
sSessionId != null
sSessionId
- The ID of the session.
Hashtable
.public java.util.Hashtable getSessionContexts()
Hashtable
.public long getSessionTimeout(java.lang.String sSessionId) throws ASelectStorageException
sSessionId != null
sSessionId
- The session ID.
ASelectStorageException
- If retrieving session timeout fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |