|
Apache Tomcat 7.0.4 | ||||||||
| 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
org.apache.catalina.ha.session.BackupManager
public class BackupManager
| Field Summary | |
|---|---|
protected CatalinaCluster |
cluster
A reference to the cluster |
protected static long |
DEFAULT_REPL_TIMEOUT
|
protected boolean |
mExpireSessionsOnShutdown
Set to true if we don't want the sessions to expire on shutdown |
protected String |
name
The name of this manager |
| Fields inherited from class org.apache.catalina.session.ManagerBase |
|---|
algorithm, container, DEFAULT_ALGORITHM, devRandomSource, digest, distributable, duplicates, entropy, expiredSessions, maxActive, maxActiveSessions, maxInactiveInterval, processExpiresFrequency, processingTime, random, randomClass, randomIS, rejectedSessions, sessionAverageAliveTime, sessionCounter, sessionIdLength, sessionMaxAliveTime, sessions, sm, support |
| Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase |
|---|
mserver |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, DESTROY_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
BackupManager()
Constructor, just calls super() |
|
| Method Summary | |
|---|---|
ClusterManager |
cloneFromTemplate()
|
Session |
createEmptySession()
Get a session from the recycled ones or create a new empty one. |
int |
getActiveSessionsFull()
|
CatalinaCluster |
getCluster()
|
boolean |
getExpireSessionsOnShutdown()
|
String[] |
getInvalidatedSessions()
When the manager expires session not tied to a request. |
String |
getMapName()
|
int |
getMapSendOptions()
|
String |
getName()
Return the descriptive short name of this Manager implementation. |
Set<String> |
getSessionIdsFull()
|
boolean |
isNotifyListenersOnReplication()
|
String |
listSessionIdsFull()
|
void |
messageDataReceived(ClusterMessage msg)
A message was received from another node, this is the callback method to implement if you are interested in receiving replication messages. |
void |
objectMadePrimay(Object key,
Object value)
|
ClusterMessage |
requestCompleted(String sessionId)
When the request has been completed, the replication valve will notify the manager, and the manager will decide whether any replication is needed or not. |
void |
setCluster(CatalinaCluster cluster)
|
void |
setDistributable(boolean dist)
Set the distributable flag for the sessions supported by this Manager. |
void |
setExpireSessionsOnShutdown(boolean expireSessionsOnShutdown)
|
void |
setMapSendOptions(int mapSendOptions)
|
void |
setName(String name)
Set the name of the manager, at host /context name and at engine hostname+/context |
void |
setNotifyListenersOnReplication(boolean notifyListenersOnReplication)
|
protected void |
startInternal()
Start this component and implement the requirements of LifecycleBase.startInternal(). |
protected void |
stopInternal()
Stop this component and implement the requirements of LifecycleBase.stopInternal(). |
| Methods inherited from class org.apache.catalina.ha.session.ClusterManagerBase |
|---|
getClassLoaders, getClassLoaders, getReplicationStream, getReplicationStream, load, unload |
| Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase |
|---|
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 |
| Field Detail |
|---|
protected static long DEFAULT_REPL_TIMEOUT
protected boolean mExpireSessionsOnShutdown
protected String name
protected CatalinaCluster cluster
| Constructor Detail |
|---|
public BackupManager()
| Method Detail |
|---|
public void messageDataReceived(ClusterMessage msg)
ClusterManager
messageDataReceived in interface ClusterManagermsg - - the message received.public void setExpireSessionsOnShutdown(boolean expireSessionsOnShutdown)
public void setCluster(CatalinaCluster cluster)
setCluster in interface ClusterManagerpublic boolean getExpireSessionsOnShutdown()
public ClusterMessage requestCompleted(String sessionId)
ClusterManager
requestCompleted in interface ClusterManagersessionId - - the sessionId that just completed.
public void objectMadePrimay(Object key,
Object value)
objectMadePrimay in interface AbstractReplicatedMap.MapOwnerpublic Session createEmptySession()
ManagerBase
createEmptySession in interface ManagercreateEmptySession in class ManagerBasepublic String getName()
ManagerBase
getName in interface ClusterManagergetName in class ManagerBase
protected void startInternal()
throws LifecycleException
LifecycleBase.startInternal().
Starts the cluster communication channel, this will connect with the
other nodes in the cluster, and request the current session state to be
transferred to this node.
startInternal in class LifecycleBaseLifecycleException - if this component detects a fatal error
that prevents this component from being usedpublic String getMapName()
protected void stopInternal()
throws LifecycleException
LifecycleBase.stopInternal().
This will disconnect the cluster communication channel and stop the
listener thread.
stopInternal in class LifecycleBaseLifecycleException - if this component detects a fatal error
that prevents this component from being usedpublic void setDistributable(boolean dist)
ManagerBase
setDistributable in interface ManagersetDistributable in class ManagerBasedist - The new distributable flagpublic void setName(String name)
ClusterManager
setName in interface ClusterManagerpublic boolean isNotifyListenersOnReplication()
isNotifyListenersOnReplication in interface ClusterManagerpublic void setNotifyListenersOnReplication(boolean notifyListenersOnReplication)
public void setMapSendOptions(int mapSendOptions)
public CatalinaCluster getCluster()
getCluster in interface ClusterManagerpublic int getMapSendOptions()
public String[] getInvalidatedSessions()
ClusterManager
getInvalidatedSessions in interface ClusterManagerpublic ClusterManager cloneFromTemplate()
cloneFromTemplate in interface ClusterManagerpublic int getActiveSessionsFull()
public String listSessionIdsFull()
public Set<String> getSessionIdsFull()
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||