|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.lib.session.QuercusSessionManager
com.caucho.quercus.lib.session.ProSessionManager
public class ProSessionManager
Stripped down version of com.caucho.server.session.SessionManager, customized to PHP instead of J2EE sessions.
| Field Summary | |
|---|---|
protected static L10N |
L
|
protected static java.util.logging.Logger |
log
|
| Fields inherited from class com.caucho.quercus.lib.session.QuercusSessionManager |
|---|
_isClosed, _sessionCreateCount, _sessionIter, _sessionList, _sessionMax, _sessions, _sessionTimeoutCount, _statisticsLock |
| Constructor Summary | |
|---|---|
ProSessionManager(java.lang.String contextId)
|
|
| Method Summary | |
|---|---|
ClusterObject |
createClusterObject(java.lang.String id)
Creates the cluster object |
java.lang.String |
createSessionId(Env env)
Creates a pseudo-random session id. |
protected SessionArrayValue |
createSessionValue(java.lang.String key,
long now,
long sessionTimeout)
Creates a new SessionArrayValue instance. |
long |
getMaxIdleTime()
Returns the maximum idle time. |
boolean |
isEmpty(java.lang.Object obj)
Checks if the session is empty. |
void |
load(java.io.InputStream in,
java.lang.Object obj)
Loads the session. |
void |
notifyRemove(java.lang.Object id)
Notification from the cluster. |
void |
notifyUpdate(java.lang.Object id)
Notification from the cluster. |
void |
store(java.io.OutputStream out,
java.lang.Object obj)
Saves the session. |
| Methods inherited from class com.caucho.quercus.lib.session.QuercusSessionManager |
|---|
close, create, createSession, getActiveSessionCount, getReuseSessionId, getSaveOnlyOnShutdown, getSession, getSessionCreateCount, getSessionMax, getSessionTimeoutCount, handleAlarm, isClosed, load, load, notifyRemove, notifyUpdate, remove, removeSession, saveSession, setAlwaysLoadSession, setAlwaysSaveSession, setCookieAppendServerIndex, setCookieLength, setReuseSessionId, setSaveOnlyOnShutdown, setSaveOnShutdown, setSessionMax, setSessionTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final L10N L
protected static final java.util.logging.Logger log
| Constructor Detail |
|---|
public ProSessionManager(java.lang.String contextId)
| Method Detail |
|---|
public java.lang.String createSessionId(Env env)
createSessionId in class QuercusSessionManager
protected SessionArrayValue createSessionValue(java.lang.String key,
long now,
long sessionTimeout)
createSessionValue in class QuercusSessionManagerpublic ClusterObject createClusterObject(java.lang.String id)
createClusterObject in interface ObjectManagerpublic long getMaxIdleTime()
ObjectManager
getMaxIdleTime in interface ObjectManager
public void load(java.io.InputStream in,
java.lang.Object obj)
throws java.io.IOException
load in interface ObjectManagerin - the input stream containing the serialized sessionobj - the session object to be deserialized
java.io.IOExceptionpublic boolean isEmpty(java.lang.Object obj)
isEmpty in interface ObjectManagerisEmpty in class QuercusSessionManagerpublic void notifyRemove(java.lang.Object id)
notifyRemove in interface ObjectManagerpublic void notifyUpdate(java.lang.Object id)
notifyUpdate in interface ObjectManager
public void store(java.io.OutputStream out,
java.lang.Object obj)
throws java.io.IOException
store in interface ObjectManagerstore in class QuercusSessionManagerjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||