|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.catalina.session.ManagerBase | +--org.apache.catalina.session.PersistentManagerBase | +--org.apache.catalina.session.DistributedManager
This manager is responsible for in memory replication of Sessions across a defined Cluster. It could also utilize a Store to make Sessions persistence.
Field Summary | |
protected static java.lang.String |
name
The descriptive name of this Manager implementation (for logging). |
Fields inherited from class org.apache.catalina.session.PersistentManagerBase |
lifecycle, threadDone |
Fields inherited from class org.apache.catalina.session.ManagerBase |
algorithm, container, debug, DEFAULT_ALGORITHM, digest, distributable, entropy, maxInactiveInterval, random, randomClass, recycled, SESSION_ID_BYTES, sessions, sm, support |
Fields inherited from interface org.apache.catalina.Lifecycle |
START_EVENT, STOP_EVENT |
Constructor Summary | |
DistributedManager()
|
Method Summary | |
Session |
createSession()
Create a Session and replicate it in our Cluster |
java.lang.String |
getInfo()
Return descriptive information about this Manager implementation and the corresponding version number, in the format <description>/<version> . |
java.lang.String |
getName()
Return the descriptive short name of this Manager implementation. |
void |
processClusterReceiver()
Called from our background thread to process new received Sessions |
void |
run()
The background thread that checks for session timeouts and shutdown. |
void |
start()
Start this manager |
Methods inherited from class org.apache.catalina.session.PersistentManagerBase |
addLifecycleListener, clearStore, findSession, getCheckInterval, getMaxActiveSessions, getMaxIdleBackup, getMaxIdleSwap, getMinIdleSwap, getSaveOnRestart, getStore, isSessionStale, isStarted, load, processExpires, processMaxActiveSwaps, processMaxIdleBackups, processMaxIdleSwaps, processPersistenceChecks, propertyChange, remove, removeLifecycleListener, setCheckInterval, setContainer, setMaxActiveSessions, setMaxIdleBackup, setMaxIdleSwap, setMinIdleSwap, setSaveOnRestart, setStarted, setStore, stop, swapIn, swapOut, threadSleep, threadStart, threadStop, unload, writeSession |
Methods inherited from class org.apache.catalina.session.ManagerBase |
add, addPropertyChangeListener, findSessions, generateSessionId, getAlgorithm, getContainer, getDebug, getDigest, getDistributable, getEngine, getEntropy, getJvmRoute, getMaxInactiveInterval, getRandom, getRandomClass, removePropertyChangeListener, setAlgorithm, setDebug, setDistributable, setEntropy, setMaxInactiveInterval, setRandomClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.lang.String name
Constructor Detail |
public DistributedManager()
Method Detail |
public java.lang.String getInfo()
<description>/<version>
.
getInfo
in interface Manager
getInfo
in class PersistentManagerBase
public java.lang.String getName()
getName
in class PersistentManagerBase
public Session createSession()
createSession
in interface Manager
createSession
in class PersistentManagerBase
public void start() throws LifecycleException
start
in interface Lifecycle
start
in class PersistentManagerBase
LifecycleException
- if an error occurspublic void processClusterReceiver()
public void run()
run
in interface java.lang.Runnable
run
in class PersistentManagerBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |