Method Summary |
|
long | checkPassiveSessions() Pages out any sessions that are passive and have exceeded
the page time threshold. |
abstract protected boolean | cleanupNewPagedSession() Removes a session that is new and paged. |
public boolean | containsKey(String sessionKey) Specifies if a key is currently in use.
Parameters: sessionKey - the session key to be tested. |
public synchronized StandardSession | createSession(String sessionKey) Creates a new session instance in the cache. |
protected void | debug(String msg) Prints debug information under Logger.DEBUG. |
protected void | debug(int level, String msg) Prints debug information under Logger.DEBUG. |
abstract protected void | deleteSession(String sessionKey) Deletes a paged session. |
abstract protected int | getPagedSessionCount() Returns the number of paged sessions. |
abstract protected Enumeration | getPagedSessionKeys() Returns an enumeration of the keys of all the sessions that have
been paged out to persistent storage. |
public synchronized StandardSession | getSession(String sessionKey) Returns the session associated with the session key. |
public synchronized StandardSession | getSession(Thread thread, String sessionKey) Returns the session associated with the session key.
The session is associated with the specified thread.
The session is put into the 'active' state.
Parameters: thread - the thread to associate with the session. Parameters: sessionKey - the session key for the sessionthat will be made 'active' and returned. |
public synchronized Enumeration | keys() Returns an enumeration of keys for the cached sessions. |
abstract protected PagedSession | newSession(StandardSessionManager mgr, String sessionKey) Creates a new session object. |
abstract protected PagedSession | pageIn(String sessionKey) Reads a paged session from disk.
Parameters: sessionKey - the key identifying the session that shouldbe paged in. |
abstract protected void | pageOut(PagedSession s) Pages a session to disk. |
abstract protected boolean | pagedSessionKeyExists(String sessionKey) Returns true if the specified session key is in use
by a session that has been paged out.
Parameters: sessionKey - the session key to test. |
public int | pagedSize() Returns the current number of sessions that are paged to
persistent store. |
public synchronized void | passivateSession(Thread thread, String sessionKey) Puts an 'active' session into the 'passive' state. |
public synchronized void | removeSession(String sessionKey) Removes the session associated with the session key.
Parameters: sessionKey - the session key for the sessionthat will be made 'active' and returned. |
public synchronized void | shutdown() Shuts down the session home. |
public int | size() Returns the current number of sessions. |