Package org.apache.catalina.ha.session
Class ClusterManagerBase
- java.lang.Object
- 
- org.apache.catalina.util.LifecycleBase
- 
- org.apache.catalina.util.LifecycleMBeanBase
- 
- org.apache.catalina.session.ManagerBase
- 
- org.apache.catalina.ha.session.ClusterManagerBase
 
 
 
 
- 
- All Implemented Interfaces:
- javax.management.MBeanRegistration,- ClusterManager,- JmxEnabled,- Lifecycle,- Manager
 - Direct Known Subclasses:
- BackupManager,- DeltaManager
 
 public abstract class ClusterManagerBase extends ManagerBase implements ClusterManager 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.catalina.session.ManagerBaseManagerBase.SessionTiming
 - 
Nested classes/interfaces inherited from interface org.apache.catalina.LifecycleLifecycle.SingleUse
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected CatalinaClusterclusterA reference to the cluster- 
Fields inherited from class org.apache.catalina.session.ManagerBaseduplicates, expiredSessions, maxActive, maxActiveSessions, processExpiresFrequency, processingTime, rejectedSessions, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdGeneratorClass, sessionMaxAliveTime, sessions, sm, support, TIMING_STATS_CACHE_SIZE
 - 
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBasemserver
 - 
Fields inherited from interface org.apache.catalina.LifecycleAFTER_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 SummaryConstructors Constructor Description ClusterManagerBase()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclone(ClusterManagerBase copy)java.lang.ClassLoader[]getClassLoaders()static java.lang.ClassLoader[]getClassLoaders(Context context)CatalinaClustergetCluster()protected SynchronizedStack<DeltaRequest>getDeltaRequestPool()ReplicationStreamgetReplicationStream(byte[] data)Open stream and use correct ClassLoader (Container), switching thread context class loader.ReplicationStreamgetReplicationStream(byte[] data, int offset, int length)booleanisNotifyListenersOnReplication()booleanisRecordAllActions()voidload()Managerimplementations that also implementClusterManagerdo not support local session persistence.protected voidregisterSessionAtReplicationValve(DeltaSession session)Register cross context session at replication valve thread localvoidsetCluster(CatalinaCluster cluster)voidsetNotifyListenersOnReplication(boolean notifyListenersOnReplication)voidsetRecordAllActions(boolean recordAllActions)protected voidstartInternal()Sub-classes must ensure that the state is changed toLifecycleState.STARTINGduring the execution of this method.protected voidstopInternal()Sub-classes must ensure that the state is changed toLifecycleState.STOPPINGduring the execution of this method.voidunload()Managerimplementations that also implementClusterManagerdo not support local session persistence.- 
Methods inherited from class org.apache.catalina.session.ManagerBaseadd, addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, changeSessionId, createEmptySession, createSession, expireSession, findSession, findSessions, generateSessionId, getActiveSessions, getClassName, getContext, getCreationTime, getCreationTimestamp, getDomainInternal, getDuplicates, getEngine, getExpiredSessions, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActive, getMaxActiveSessions, getName, getNewSession, getNotifyAttributeListenerOnUnchangedValue, getNotifyBindingListenerOnUnchangedValue, getObjectNameKeyProperties, getPersistAuthentication, getPersistAuthenticationNotes, getProcessExpiresFrequency, getProcessingTime, getRejectedSessions, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, getWarnOnSessionAttributeFilterFailure, initInternal, listSessionIds, processExpires, remove, remove, removePropertyChangeListener, rotateSessionId, setContext, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setNotifyAttributeListenerOnUnchangedValue, setNotifyBindingListenerOnUnchangedValue, setPersistAuthentication, setPersistAuthenticationNotes, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionCounter, setSessionIdGenerator, setSessionMaxAliveTime, setWarnOnSessionAttributeFilterFailure, toString, updateSessionMaxAliveTime, willAttributeDistribute
 - 
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBasedestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregister
 - 
Methods inherited from class org.apache.catalina.util.LifecycleBaseaddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stop
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.catalina.ha.ClusterManagercloneFromTemplate, getInvalidatedSessions, getName, messageDataReceived, requestCompleted, setName
 - 
Methods inherited from interface org.apache.catalina.Manageradd, addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, createEmptySession, createSession, findSession, findSessions, getActiveSessions, getContext, getExpiredSessions, getMaxActive, getNotifyAttributeListenerOnUnchangedValue, getNotifyBindingListenerOnUnchangedValue, getRejectedSessions, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionMaxAliveTime, remove, remove, removePropertyChangeListener, rotateSessionId, setContext, setExpiredSessions, setMaxActive, setNotifyAttributeListenerOnUnchangedValue, setNotifyBindingListenerOnUnchangedValue, setSessionCounter, setSessionIdGenerator, setSessionMaxAliveTime, willAttributeDistribute
 
- 
 
- 
- 
- 
Field Detail- 
clusterprotected CatalinaCluster cluster A reference to the cluster
 
- 
 - 
Method Detail- 
getDeltaRequestPoolprotected SynchronizedStack<DeltaRequest> getDeltaRequestPool() 
 - 
getClusterpublic CatalinaCluster getCluster() - Specified by:
- getClusterin interface- ClusterManager
 
 - 
setClusterpublic void setCluster(CatalinaCluster cluster) - Specified by:
- setClusterin interface- ClusterManager
 
 - 
isNotifyListenersOnReplicationpublic boolean isNotifyListenersOnReplication() - Specified by:
- isNotifyListenersOnReplicationin interface- ClusterManager
 
 - 
setNotifyListenersOnReplicationpublic void setNotifyListenersOnReplication(boolean notifyListenersOnReplication) 
 - 
isRecordAllActionspublic boolean isRecordAllActions() 
 - 
setRecordAllActionspublic void setRecordAllActions(boolean recordAllActions) 
 - 
getClassLoaderspublic static java.lang.ClassLoader[] getClassLoaders(Context context) 
 - 
getClassLoaderspublic java.lang.ClassLoader[] getClassLoaders() 
 - 
getReplicationStreampublic ReplicationStream getReplicationStream(byte[] data) throws java.io.IOException Description copied from interface:ClusterManagerOpen stream and use correct ClassLoader (Container), switching thread context class loader.- Specified by:
- getReplicationStreamin interface- ClusterManager
- Parameters:
- data- The data
- Returns:
- The object input stream
- Throws:
- java.io.IOException- An error occurred
 
 - 
getReplicationStreampublic ReplicationStream getReplicationStream(byte[] data, int offset, int length) throws java.io.IOException - Specified by:
- getReplicationStreamin interface- ClusterManager
- Throws:
- java.io.IOException
 
 - 
loadpublic void load() Managerimplementations that also implementClusterManagerdo not support local session persistence.
 - 
unloadpublic void unload() Managerimplementations that also implementClusterManagerdo not support local session persistence.
 - 
cloneprotected void clone(ClusterManagerBase copy) 
 - 
registerSessionAtReplicationValveprotected void registerSessionAtReplicationValve(DeltaSession session) Register cross context session at replication valve thread local- Parameters:
- session- cross context session
 
 - 
startInternalprotected void startInternal() throws LifecycleExceptionDescription copied from class:LifecycleBaseSub-classes must ensure that the state is changed toLifecycleState.STARTINGduring the execution of this method. Changing state will trigger theLifecycle.START_EVENTevent. If a component fails to start it may either throw aLifecycleExceptionwhich will cause it's parent to fail to start or it can place itself in the error state in which caseLifecycleBase.stop()will be called on the failed component but the parent component will continue to start normally.- Overrides:
- startInternalin class- ManagerBase
- Throws:
- LifecycleException- Start error occurred
 
 - 
stopInternalprotected void stopInternal() throws LifecycleExceptionDescription copied from class:LifecycleBaseSub-classes must ensure that the state is changed toLifecycleState.STOPPINGduring the execution of this method. Changing state will trigger theLifecycle.STOP_EVENTevent.- Overrides:
- stopInternalin class- ManagerBase
- Throws:
- LifecycleException- Stop error occurred
 
 
- 
 
-