org.apache.catalina.session

Class PersistentManager

Implemented Interfaces:
Lifecycle, MBeanRegistration, PropertyChangeListener, 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.
  • Version:
    $Revision: 1.3 $

    Author:
    Kief Morris (kief@kief.com)

    Field Summary

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

    Fields inherited from class org.apache.catalina.session.PersistentManagerBase

    expiredSessions, lifecycle, maxActiveSessions, maxIdleBackup, maxIdleSwap, minIdleSwap, processingTime, rejectedSessions, saveOnRestart, started, store

    Fields inherited from class org.apache.catalina.session.ManagerBase

    DEFAULT_ALGORITHM, algorithm, container, debug, defaultContext, devRandomSource, digest, distributable, domain, duplicates, entropy, initialized, log, maxActive, maxInactiveInterval, mserver, name, oname, random, randomClass, randomIS, sessionCounter, sessionIdLength, sessions, sm, support

    Fields inherited from interface org.apache.catalina.Lifecycle

    AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, START_EVENT, STOP_EVENT

    Method Summary

    String
    getInfo()
    Return descriptive information about this Manager implementation and the corresponding version number, in the format <description>/<version>.
    String
    getName()
    Return the descriptive short name of this Manager implementation.

    Methods inherited from class org.apache.catalina.session.PersistentManagerBase

    addLifecycleListener, backgroundProcess, clearStore, findLifecycleListeners, findSession, getExpiredSessions, getInfo, getMaxActiveSessions, getMaxIdleBackup, getMaxIdleSwap, getMinIdleSwap, getName, getProcessingTime, getRejectedSessions, getSaveOnRestart, getStore, isLoaded, isStarted, load, processExpires, processMaxActiveSwaps, processMaxIdleBackups, processMaxIdleSwaps, processPersistenceChecks, propertyChange, remove, removeLifecycleListener, removeSession, removeSuper, setContainer, setExpiredSessions, setMaxActiveSessions, setMaxIdleBackup, setMaxIdleSwap, setMinIdleSwap, setProcessingTime, setRejectedSessions, setSaveOnRestart, setStarted, setStore, start, stop, swapIn, swapOut, unload, writeSession

    Methods inherited from class org.apache.catalina.session.ManagerBase

    add, addPropertyChangeListener, backgroundProcess, createEmptySession, createSession, destroy, expireSession, findSession, findSessions, generateSessionId, getActiveSessions, getAlgorithm, getClassName, getContainer, getDebug, getDefaultContext, getDigest, getDistributable, getDomain, getDuplicates, getEngine, getEntropy, getInfo, getJvmRoute, getLastAccessedTime, getMaxActive, getMaxInactiveInterval, getName, getNewSession, getObjectName, getRandom, getRandomBytes, getRandomClass, getRandomFile, getSessionAttribute, getSessionCounter, getSessionIdLength, init, listSessionIds, log, log, postDeregister, postRegister, preDeregister, preRegister, remove, removePropertyChangeListener, setAlgorithm, setContainer, setDebug, setDefaultContext, setDistributable, setDuplicates, setEntropy, setMaxActive, setMaxInactiveInterval, setRandomClass, setRandomFile, setSessionCounter, setSessionIdLength

    Field Details

    name

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

    Method Details

    getInfo

    public 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 interface PersistentManagerBase


    getName

    public String getName()
    Return the descriptive short name of this Manager implementation.
    Overrides:
    getName in interface PersistentManagerBase


    Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.