public class StandardManager extends ManagerBase
IMPLEMENTATION NOTE: Correct behavior of session storing and
reloading depends upon external calls to the start()
and
stop()
methods of this class at the correct times.
ManagerBase.SessionTiming
Modifier and Type | Field and Description |
---|---|
protected static String |
name
The descriptive name of this Manager implementation (for logging).
|
protected String |
pathname
Path name of the disk file in which active sessions are saved
when we stop, and from which these sessions are loaded when we start.
|
distributable, duplicates, expiredSessions, maxActive, maxActiveSessions, maxInactiveInterval, processExpiresFrequency, processingTime, rejectedSessions, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, SESSION_ID_LENGTH_UNSET, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdGeneratorClass, sessionIdLength, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZE
mserver
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
StandardManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
doLoad()
Load any currently active sessions that were previously unloaded
to the appropriate persistence mechanism, if any.
|
protected void |
doUnload()
Save any currently active sessions in the appropriate persistence
mechanism, if any.
|
protected File |
file()
Return a File object representing the pathname to our
persistence file, if any.
|
String |
getName()
Return the descriptive short name of this Manager implementation.
|
String |
getPathname()
Return the session persistence pathname, if any.
|
void |
load()
Load any currently active sessions that were previously unloaded
to the appropriate persistence mechanism, if any.
|
void |
setPathname(String pathname)
Set the session persistence pathname to the specified value.
|
protected void |
startInternal()
Start this component and implement the requirements
of
LifecycleBase.startInternal() . |
protected void |
stopInternal()
Stop this component and implement the requirements
of
LifecycleBase.stopInternal() . |
void |
unload()
Save any currently active sessions in the appropriate persistence
mechanism, if any.
|
add, addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, changeSessionId, createEmptySession, createSession, expireSession, findSession, findSessions, generateSessionId, getActiveSessions, getClassName, getContainer, getContext, getCreationTime, getCreationTimestamp, getDistributable, getDomainInternal, getDuplicates, getEngine, getExpiredSessions, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActive, getMaxActiveSessions, getMaxInactiveInterval, getNewSession, getObjectNameKeyProperties, getProcessExpiresFrequency, getProcessingTime, getRejectedSessions, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, getSession, getSessionAttribute, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionIdLength, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, initInternal, listSessionIds, processExpires, propertyChange, remove, remove, removePropertyChangeListener, setContainer, setContext, setDistributable, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionCounter, setSessionIdGenerator, setSessionIdLength, setSessionMaxAliveTime, toString, updateSessionMaxAliveTime
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop
protected static final String name
protected String pathname
null
value indicates that no persistence is desired.
If this pathname is relative, it will be resolved against the
temporary working directory provided by our context, available via
the javax.servlet.context.tempdir
context attribute.public String getName()
getName
in class ManagerBase
public String getPathname()
public void setPathname(String pathname)
null
.pathname
- New session persistence pathnamepublic void load() throws ClassNotFoundException, IOException
ClassNotFoundException
- if a serialized class cannot be
found during the reloadIOException
- if an input/output error occursprotected void doLoad() throws ClassNotFoundException, IOException
ClassNotFoundException
- if a serialized class cannot be
found during the reloadIOException
- if an input/output error occurspublic void unload() throws IOException
IOException
- if an input/output error occursprotected void doUnload() throws IOException
IOException
- if an input/output error occursprotected void startInternal() throws LifecycleException
LifecycleBase.startInternal()
.startInternal
in class ManagerBase
LifecycleException
- if this component detects a fatal error
that prevents this component from being usedprotected void stopInternal() throws LifecycleException
LifecycleBase.stopInternal()
.stopInternal
in class ManagerBase
LifecycleException
- if this component detects a fatal error
that prevents this component from being usedprotected File file()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.