You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/09/09 17:27:16 UTC
cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp SimpleTcpCluster.java
remm 2003/09/09 08:27:16
Modified: modules/cluster/src/share/org/apache/catalina/cluster/tcp
SimpleTcpCluster.java
Log:
- Refactor manager initialization, and move it into ContextConfig.
- Remove Cluster.setDistributable.
Revision Changes Path
1.15 +7 -19 jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java
Index: SimpleTcpCluster.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- SimpleTcpCluster.java 24 Apr 2003 04:24:01 -0000 1.14
+++ SimpleTcpCluster.java 9 Sep 2003 15:27:16 -0000 1.15
@@ -412,27 +412,15 @@
public synchronized Manager createManager(String name) {
SimpleTcpReplicationManager manager = new SimpleTcpReplicationManager(name);
- manager.setCluster(null);
- manager.setDistributable(false);
+ manager.setCluster(this);
+ manager.setDistributable(true);
manager.setExpireSessionsOnShutdown(expireSessionsOnShutdown);
manager.setPrintToScreen(printToScreen);
manager.setUseDirtyFlag(useDirtyFlag);
manager.setDebug(debug);
allmanagers.put(name, manager);
+ managers.put(name,manager);
return manager;
- }
-
- public void setDistributable(String contextName, boolean distributable)
- {
- log.info("Setting distributable for context:"+contextName+" to "+distributable);
- SimpleTcpReplicationManager manager = (SimpleTcpReplicationManager)allmanagers.get(contextName);
- manager.setDistributable(distributable);
- if (distributable) {
- manager.setCluster(this);
- manager.setDistributable(true);
- managers.put(contextName,manager);
- }
-
}