de.javakaffee.web.msm
Class DummyMemcachedBackupSessionManager

java.lang.Object
  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

Field Summary
 
Fields inherited from class de.javakaffee.web.msm.MemcachedBackupSessionManager
_log, _msm, _started, NAME
 
Fields inherited from class org.apache.catalina.session.ManagerBase
algorithm, container, DEFAULT_ALGORITHM, devRandomSource, digest, distributable, domain, duplicates, entropy, expiredSessions, initialized, log, maxActive, maxInactiveInterval, mserver, name, oname, processExpiresFrequency, processingTime, random, randomClass, randomIS, sessionAverageAliveTime, sessionCounter, sessionIdLength, sessionMaxAliveTime, sessions, sm, support
 
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
DummyMemcachedBackupSessionManager()
           
 
Method Summary
 
Methods inherited from class de.javakaffee.web.msm.MemcachedBackupSessionManager
addLifecycleListener, backgroundProcess, changeSessionId, createEmptySession, createSession, createSessionTrackerValve, expireSession, findLifecycleListeners, findSession, generateSessionId, getBackupThreadCount, getFailoverNodes, getInfo, getMaxActiveSessions, 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, getRejectedSessions, getSessionAttributeFilter, getSessionBackupTimeout, getSessionInternal, getSessionsInternal, getString, getString, incrementRejectedSessions, incrementSessionCounter, isEnabled, isInitialized, isSessionBackupAsync, isSticky, load, newMemcachedBackupSession, propertyChange, readPrincipal, remove, removeInternal, removeLifecycleListener, setBackupThreadCount, setContainer, setCopyCollectionsForSerialization, setCustomConverter, setEnabled, setEnableStatistics, setFailoverNodes, setLockingMode, setLockingMode, setMaxActiveSessions, setMemcachedNodes, setMemcachedProtocol, setOperationTimeout, setPassword, setRejectedSessions, setRequestUriIgnorePattern, setSessionAttributeFilter, setSessionBackupAsync, setSessionBackupTimeout, setSticky, setTranscoderFactoryClass, setUsername, start, startInternal, stop, unload
 
Methods inherited from class org.apache.catalina.session.ManagerBase
add, addPropertyChangeListener, createSession, destroy, findSessions, 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, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, init, listSessionIds, postDeregister, postRegister, preDeregister, preRegister, processExpires, removePropertyChangeListener, setAlgorithm, setDistributable, setDuplicates, setEntropy, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setRandomClass, setRandomFile, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.javakaffee.web.msm.MemcachedSessionService.SessionManager
getContainer, getJvmRoute, setProcessExpiresFrequency
 
Methods inherited from interface org.apache.catalina.Manager
add, addPropertyChangeListener, createSession, findSessions, getActiveSessions, getDistributable, getExpiredSessions, getMaxActive, getMaxInactiveInterval, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, removePropertyChangeListener, setDistributable, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime
 

Constructor Detail

DummyMemcachedBackupSessionManager

public DummyMemcachedBackupSessionManager()


Copyright © 2009-2012. All Rights Reserved.