|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.session.ManagerBase
org.apache.catalina.ha.session.ClusterManagerBase
public abstract class ClusterManagerBase
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.catalina.session.ManagerBase |
---|
ManagerBase.SessionTiming |
Field Summary | |
---|---|
protected CatalinaCluster |
cluster
A reference to the cluster |
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 | |
---|---|
ClusterManagerBase()
|
Method Summary | |
---|---|
protected void |
clone(ClusterManagerBase copy)
|
ClassLoader[] |
getClassLoaders()
|
static ClassLoader[] |
getClassLoaders(Container container)
|
CatalinaCluster |
getCluster()
|
ReplicationStream |
getReplicationStream(byte[] data)
Open Stream and use correct ClassLoader (Container) Switch ThreadClassLoader |
ReplicationStream |
getReplicationStream(byte[] data,
int offset,
int length)
|
String |
getSessionAttributeFilter()
Return the string pattern used for including session attributes to replication. |
boolean |
isNotifyListenersOnReplication()
|
void |
load()
Manager implementations that also implement
ClusterManager do not support local session persistence. |
protected void |
registerSessionAtReplicationValve(DeltaSession session)
Register cross context session at replication valve thread local |
void |
setCluster(CatalinaCluster cluster)
|
void |
setNotifyListenersOnReplication(boolean notifyListenersOnReplication)
|
void |
setSessionAttributeFilter(String sessionAttributeFilter)
Set the pattern used for including session attributes to replication. |
protected void |
startInternal()
Sub-classes must ensure that the state is changed to LifecycleState.STARTING during the execution of this method. |
protected void |
stopInternal()
Sub-classes must ensure that the state is changed to LifecycleState.STOPPING during the execution of this method. |
void |
unload()
Save any currently active sessions in the appropriate persistence mechanism, if any. |
boolean |
willAttributeDistribute(String name)
Check whether the given session attribute should be distributed |
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.ha.ClusterManager |
---|
cloneFromTemplate, getInvalidatedSessions, getName, messageDataReceived, requestCompleted, setName |
Field Detail |
---|
protected CatalinaCluster cluster
Constructor Detail |
---|
public ClusterManagerBase()
Method Detail |
---|
public CatalinaCluster getCluster()
getCluster
in interface ClusterManager
public void setCluster(CatalinaCluster cluster)
setCluster
in interface ClusterManager
public boolean isNotifyListenersOnReplication()
isNotifyListenersOnReplication
in interface ClusterManager
public void setNotifyListenersOnReplication(boolean notifyListenersOnReplication)
public String getSessionAttributeFilter()
public void setSessionAttributeFilter(String sessionAttributeFilter)
E.g. ^(userName|sessionHistory)$
sessionAttributeFilter
- the filter name pattern to setpublic boolean willAttributeDistribute(String name)
public static ClassLoader[] getClassLoaders(Container container)
public ClassLoader[] getClassLoaders()
public ReplicationStream getReplicationStream(byte[] data) throws IOException
getReplicationStream
in interface ClusterManager
data
-
IOException
public ReplicationStream getReplicationStream(byte[] data, int offset, int length) throws IOException
getReplicationStream
in interface ClusterManager
IOException
public void load()
Manager
implementations that also implement
ClusterManager
do not support local session persistence.
load
in interface Manager
public void unload()
Manager
unload
in interface Manager
protected void clone(ClusterManagerBase copy)
protected void registerSessionAtReplicationValve(DeltaSession session)
session
- cross context sessionprotected void startInternal() throws LifecycleException
LifecycleBase
LifecycleState.STARTING
during the execution of this method.
Changing state will trigger the Lifecycle.START_EVENT
event.
If a component fails to start it may either throw a
LifecycleException
which will cause it's parent to fail to start
or it can place itself in the error state in which case LifecycleBase.stop()
will be called on the failed component but the parent component will
continue to start normally.
startInternal
in class ManagerBase
LifecycleException
protected void stopInternal() throws LifecycleException
LifecycleBase
LifecycleState.STOPPING
during the execution of this method.
Changing state will trigger the Lifecycle.STOP_EVENT
event.
stopInternal
in class ManagerBase
LifecycleException
|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |