Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » catalina » session » [javadoc | source]
org.apache.catalina.session
public final class: PersistentManager [javadoc | source]
java.lang.Object
   org.apache.catalina.session.ManagerBase
      org.apache.catalina.session.PersistentManagerBase
         org.apache.catalina.session.PersistentManager

All Implemented Interfaces:
    PropertyChangeListener, Lifecycle, Manager, MBeanRegistration

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.
  • Field Summary
    protected static  String name    The descriptive name of this Manager implementation (for logging). 
    Fields inherited from org.apache.catalina.session.PersistentManagerBase:
    lifecycle,  maxActiveSessions,  started,  store,  saveOnRestart,  maxIdleBackup,  minIdleSwap,  maxIdleSwap,  rejectedSessions,  processingTime
    Fields inherited from org.apache.catalina.session.ManagerBase:
    log,  randomIS,  devRandomSource,  DEFAULT_ALGORITHM,  algorithm,  container,  digest,  distributable,  entropy,  maxInactiveInterval,  sessionIdLength,  name,  random,  randomClass,  sessionMaxAliveTime,  sessionAverageAliveTime,  expiredSessions,  sessions,  sessionCounter,  maxActive,  duplicates,  initialized,  processingTime,  processExpiresFrequency,  sm,  support,  domain,  oname,  mserver
    Method from org.apache.catalina.session.PersistentManager Summary:
    getInfo,   getName
    Methods from org.apache.catalina.session.PersistentManagerBase:
    addLifecycleListener,   clearStore,   findLifecycleListeners,   findSession,   getInfo,   getMaxActiveSessions,   getMaxIdleBackup,   getMaxIdleSwap,   getMinIdleSwap,   getName,   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 from org.apache.catalina.session.ManagerBase:
    add,   addPropertyChangeListener,   backgroundProcess,   changeSessionId,   createEmptySession,   createSession,   createSession,   destroy,   expireSession,   findSession,   findSessions,   generateSessionId,   getActiveSessions,   getAlgorithm,   getClassName,   getContainer,   getCreationTime,   getCreationTimestamp,   getDigest,   getDistributable,   getDomain,   getDuplicates,   getEngine,   getEntropy,   getExpiredSessions,   getInfo,   getJvmRoute,   getLastAccessedTime,   getLastAccessedTimestamp,   getMaxActive,   getMaxInactiveInterval,   getName,   getNewSession,   getObjectName,   getProcessExpiresFrequency,   getProcessingTime,   getRandom,   getRandomBytes,   getRandomClass,   getRandomFile,   getSession,   getSessionAttribute,   getSessionAverageAliveTime,   getSessionCounter,   getSessionIdLength,   getSessionMaxAliveTime,   init,   listSessionIds,   postDeregister,   postRegister,   preDeregister,   preRegister,   processExpires,   remove,   removePropertyChangeListener,   setAlgorithm,   setContainer,   setDistributable,   setDuplicates,   setEntropy,   setExpiredSessions,   setMaxActive,   setMaxInactiveInterval,   setProcessExpiresFrequency,   setProcessingTime,   setRandomClass,   setRandomFile,   setSessionAverageAliveTime,   setSessionCounter,   setSessionIdLength,   setSessionMaxAliveTime
    Methods from java.lang.Object:
    clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
    Method from org.apache.catalina.session.PersistentManager Detail:
     public String getInfo() 
      Return descriptive information about this Manager implementation and the corresponding version number, in the format <description>/<version>.
     public String getName() 
      Return the descriptive short name of this Manager implementation.