|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aselect.system.storagemanager.StorageManager
org.aselect.server.session.SessionManager
public class SessionManager
Manages A-Select Server sessions.
Description:
Provides methods for managing sessions:
StorageManager.
| Field Summary | |
|---|---|
static java.lang.String |
MODULE
The module name. |
| Method Summary | |
|---|---|
java.lang.String |
createSession(java.util.Hashtable htSessionContext)
Create a unique session ID and stores the htSessionContext using this ID. |
boolean |
createSession(java.lang.String sSessionId,
java.util.Hashtable htSessionContext)
Stores a new session context using the supplied session ID. |
void |
destroy()
Destroy the SessionManager. |
long |
getCounter()
Retrieve the number of issued sessions since startup. |
static SessionManager |
getHandle()
Returns a static handle to the SessionManager instance. |
long |
getProcessingTime()
Retrieve the processing time. |
java.util.Hashtable |
getSessionContext(java.lang.String sSessionId)
Get the session context of a session. |
void |
init()
Initializes the SessionManager. |
void |
killSession(java.lang.String sSessionId)
Kill a session. |
boolean |
updateSession(java.lang.String sSessionId,
java.util.Hashtable htSessionContext)
Update a session context. |
| Methods inherited from class org.aselect.system.storagemanager.StorageManager |
|---|
containsKey, get, getAll, getCount, getExpirationTime, getTimestamp, init, put, remove, removeAll, update |
| 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 void init()
throws ASelectException,
ASelectConfigException
SessionManager.
ASelectException - If initialization fails.
ASelectConfigException - If one or more mandatory configuration
settings are missing or invalid.public static SessionManager getHandle()
SessionManager instance.
SessionManager exists.
SessionManager.public void destroy()
SessionManager.
super.destroy()
SessionManager is destroyed.
destroy in class StorageManagerIStorageHandler.destroy(),
Cleaner#destroy()
public java.lang.String createSession(java.util.Hashtable htSessionContext)
throws ASelectException
htSessionContext using this ID.
htSessionContext supplied by the caller under
a unique generated session id of 8 bytes.
htSessionContext != null
htSessionContext - The session context parameters in a
Hashtable.
ASelectException - If server is busy.
public boolean createSession(java.lang.String sSessionId,
java.util.Hashtable htSessionContext)
updateSession(String, Hashtable), if
the session allready exists. In this case this method is faster.
sSessionId != nullhtSessionContext != null
sSessionId - The ID of the session.htSessionContext - The new session context.
public boolean updateSession(java.lang.String sSessionId,
java.util.Hashtable htSessionContext)
sSessionId != nullhtSessionContext != null
sSessionId - The ID of the session.htSessionContext - The new session context.
public java.util.Hashtable getSessionContext(java.lang.String sSessionId)
sSessionId != null
sSessionId - The ID of the session.
Hashtable.public void killSession(java.lang.String sSessionId)
sSessionId != null
sSessionId - The ID of the session to be killed.public long getProcessingTime()
public long getCounter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||