de.javakaffee.web.msm
Class DummyMemcachedBackupSessionManager

java.lang.Object
  extended by org.apache.catalina.util.LifecycleBase
      extended by org.apache.catalina.util.LifecycleMBeanBase
          extended by org.apache.catalina.session.ManagerBase
              extended by de.javakaffee.web.msm.MemcachedBackupSessionManager
                  extended by de.javakaffee.web.msm.DummyMemcachedBackupSessionManager
All Implemented Interfaces:
MemcachedSessionService.SessionManager, PropertyChangeListener, EventListener, MBeanRegistration, org.apache.catalina.Lifecycle, org.apache.catalina.Manager

public class DummyMemcachedBackupSessionManager
extends MemcachedBackupSessionManager

This MemcachedBackupSessionManager can be used for debugging session deserialization - to see if serialized session data actually can be deserialized. Session data is serialized at the end of the request as normal (stored in a simple map), and deserialized when a following request is asking for the session. The deserialization is done like this (instead of directly at the end of the request when it is serialized) to perform deserialization at the same point in the lifecycle as it would happen in the real failover case (there might be difference in respect to initialized ThreadLocals or other stuff).

The memcached configuration (memcachedNodes, failoverNode) is not used to create a memcached client, so serialized session data will not be sent to memcached - and therefore no running memcacheds are required. Though, the memcachedNodes attribute is still required (use some dummy values).

Version:
$Id$
Author:
Martin Grotzke

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.catalina.session.ManagerBase
org.apache.catalina.session.ManagerBase.SessionTiming
 
Field Summary
 
Fields inherited from class de.javakaffee.web.msm.MemcachedBackupSessionManager
_log, _msm, NAME
 
Fields inherited from class org.apache.catalina.session.ManagerBase
container, distributable, duplicates, expiredSessions, maxActive, maxActiveSessions, maxInactiveInterval, processExpiresFrequency, processingTime, rejectedSessions, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdLength, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZE
 
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase
mserver
 
Fields inherited from interface org.apache.catalina.Lifecycle
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 Summary
DummyMemcachedBackupSessionManager()
           
 
Method Summary
 
Methods inherited from class de.javakaffee.web.msm.MemcachedBackupSessionManager
backgroundProcess, changeSessionId, createEmptySession, createSession, expireSession, findSession, generateSessionId, getBackupThreadCount, getFailoverNodes, getInfo, getMemcachedNodes, getMemcachedSessionService, getMsmStatAttributesSerializationInfo, getMsmStatBackupInfo, getMsmStatCachedDataSizeInfo, getMsmStatEffectiveBackupInfo, getMsmStatMemcachedUpdateInfo, getMsmStatNonStickyAcquireLockFailureInfo, getMsmStatNonStickyAcquireLockInfo, getMsmStatNonStickyAfterBackupInfo, getMsmStatNonStickyAfterDeleteFromMemcachedInfo, getMsmStatNonStickyAfterLoadFromMemcachedInfo, getMsmStatNonStickyOnBackupWithoutLoadedSessionInfo, getMsmStatNonStickyReleaseLockInfo, getMsmStatNumBackupFailures, getMsmStatNumMemcachedFailover, getMsmStatNumNoAttributesAccess, getMsmStatNumNonStickySessionsPingFailed, getMsmStatNumNonStickySessionsReadOnlyRequest, getMsmStatNumNoSessionAccess, getMsmStatNumNoSessionModification, getMsmStatNumRequestsWithoutSession, getMsmStatNumRequestsWithSession, getMsmStatNumTomcatFailover, getMsmStatSessionDeserializationInfo, getMsmStatSessionsDeletedFromMemcachedInfo, getMsmStatSessionsLoadedFromMemcachedInfo, getName, getOperationTimeout, getSessionAttributeFilter, getSessionBackupTimeout, getSessionCookieName, getSessionInternal, getSessionsInternal, getString, getString, incrementRejectedSessions, incrementSessionCounter, isEnabled, isInitialized, isSessionBackupAsync, isSticky, load, newMemcachedBackupSession, readPrincipal, remove, removeInternal, setBackupThreadCount, setCopyCollectionsForSerialization, setCustomConverter, setEnabled, setEnableStatistics, setFailoverNodes, setLockingMode, setLockingMode, setMemcachedNodes, setMemcachedProtocol, setOperationTimeout, setPassword, setRequestUriIgnorePattern, setSessionAttributeFilter, setSessionBackupAsync, setSessionBackupTimeout, setSticky, setTranscoderFactoryClass, setUsername, startInternal, stopInternal, unload
 
Methods inherited from class org.apache.catalina.session.ManagerBase
add, addPropertyChangeListener, findSessions, getActiveSessions, getClassName, getContainer, 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, getSessionIdLength, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, initInternal, listSessionIds, processExpires, propertyChange, remove, removePropertyChangeListener, setContainer, setDistributable, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime, toString, updateSessionMaxAliveTime
 
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
 
Methods inherited from class org.apache.catalina.util.LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.catalina.Lifecycle
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface de.javakaffee.web.msm.MemcachedSessionService.SessionManager
getContainer, getJvmRoute, getMaxActiveSessions, setProcessExpiresFrequency
 
Methods inherited from interface org.apache.catalina.Manager
add, addPropertyChangeListener, findSessions, getActiveSessions, getDistributable, getExpiredSessions, getMaxActive, getMaxInactiveInterval, getRejectedSessions, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdLength, getSessionMaxAliveTime, remove, removePropertyChangeListener, setContainer, setDistributable, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime
 

Constructor Detail

DummyMemcachedBackupSessionManager

public DummyMemcachedBackupSessionManager()


Copyright © 2009-2012. All Rights Reserved.