Apache Tomcat 6.0.53

org.apache.catalina.session
Class PersistentManager

java.lang.Object
  extended by org.apache.catalina.session.ManagerBase
      extended by org.apache.catalina.session.PersistentManagerBase
          extended by org.apache.catalina.session.PersistentManager
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, javax.management.MBeanRegistration, Lifecycle, Manager

public final class PersistentManager
extends PersistentManagerBase

Implementation of the Manager interface that makes use of a Store to swap active Sessions to disk. It can be configured to achieve several different goals:

  • Persist sessions across restarts of the Container
  • Fault tolerance, keep sessions backed up on disk to allow recovery in the event of unplanned restarts.
  • Limit the number of active sessions kept in memory by swapping less active sessions out to disk.
  • Author:
    Kief Morris (kief@kief.com)

    Nested Class Summary
     
    Nested classes/interfaces inherited from class org.apache.catalina.session.ManagerBase
    ManagerBase.SessionTiming
     
    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, maxActiveSessions, maxIdleBackup, maxIdleSwap, minIdleSwap, processingTime, rejectedSessions, saveOnRestart, started, store
     
    Fields inherited from class org.apache.catalina.session.ManagerBase
    algorithm, container, DEFAULT_ALGORITHM, devRandomSource, digest, distributable, domain, duplicates, entropy, expiredSessions, initialized, maxActive, maxInactiveInterval, mserver, oname, processExpiresFrequency, random, randomClass, randomIS, sessionAverageAliveTime, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdLength, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZE
     
    Fields inherited from interface org.apache.catalina.Lifecycle
    AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
     
    Constructor Summary
    PersistentManager()
               
     
    Method Summary
     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.
     
    Methods inherited from class org.apache.catalina.session.PersistentManagerBase
    addLifecycleListener, clearStore, findLifecycleListeners, findSession, getMaxActiveSessions, getMaxIdleBackup, getMaxIdleSwap, getMinIdleSwap, getRejectedSessions, getSaveOnRestart, getStore, isLoaded, isStarted, load, processExpires, processMaxActiveSwaps, processMaxIdleBackups, processMaxIdleSwaps, processPersistenceChecks, propertyChange, remove, removeLifecycleListener, removeSession, removeSuper, setContainer, setMaxActiveSessions, setMaxIdleBackup, setMaxIdleSwap, setMinIdleSwap, setRejectedSessions, setSaveOnRestart, setStarted, setStore, start, stop, swapIn, swapOut, unload, writeSession
     
    Methods inherited from class org.apache.catalina.session.ManagerBase
    add, addPropertyChangeListener, backgroundProcess, changeSessionId, createEmptySession, createSession, createSession, destroy, expireSession, findSessions, generateSessionId, getActiveSessions, getAlgorithm, getClassName, getContainer, getCreationTime, getCreationTimestamp, getDigest, getDistributable, getDomain, getDuplicates, getEngine, getEntropy, getExpiredSessions, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActive, getMaxInactiveInterval, getNewSession, getObjectName, getProcessExpiresFrequency, getProcessingTime, getRandom, getRandomBytes, getRandomClass, getRandomFile, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdLength, getSessionMaxAliveTime, getWarnOnSessionAttributeFilterFailure, init, listSessionIds, postDeregister, postRegister, preDeregister, preRegister, removePropertyChangeListener, setAlgorithm, setDistributable, setDuplicates, setEntropy, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setRandomClass, setRandomFile, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime, setWarnOnSessionAttributeFilterFailure, willAttributeDistribute
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    name

    protected static java.lang.String name
    The descriptive name of this Manager implementation (for logging).

    Constructor Detail

    PersistentManager

    public PersistentManager()
    Method Detail

    getInfo

    public java.lang.String getInfo()
    Return descriptive information about this Manager implementation and the corresponding version number, in the format <description>/<version>.

    Specified by:
    getInfo in interface Manager
    Overrides:
    getInfo in class PersistentManagerBase

    getName

    public java.lang.String getName()
    Return the descriptive short name of this Manager implementation.

    Overrides:
    getName in class PersistentManagerBase
    Returns:
    The descriptive short name of this Manager implementation.

    Apache Tomcat 6.0.53

    Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.