You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by as...@apache.org on 2002/02/24 08:08:04 UTC
cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral LateralCacheRestore.java LateralCacheManager.java
asmuts 02/02/23 23:08:04
Modified: src/conf log4j.properties cache.ccf
src/java/org/apache/stratum/jcs/auxiliary/lateral
LateralCacheRestore.java LateralCacheManager.java
Log:
example configuration file was wrong, didn't define class for the element attributes
Revision Changes Path
1.5 +1 -1 jakarta-turbine-stratum/src/conf/log4j.properties
Index: log4j.properties
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/src/conf/log4j.properties,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- log4j.properties 24 Feb 2002 06:48:27 -0000 1.4
+++ log4j.properties 24 Feb 2002 07:08:04 -0000 1.5
@@ -28,7 +28,7 @@
log4j.category.org.apache.stratum.jcs.acess=WARN,WF
log4j.category.org.apache.stratum.jcs.engine.control=WARN,WF
log4j.category.org.apache.stratum.jcs.engine.memory.shrinking=ERROR,A1
-log4j.category.org.apache.stratum.jcs.config=WARN,WF
+log4j.category.org.apache.stratum.jcs.config=WARN,A1
log4j.category.org.apache.stratum.jcs.auxiliary.disk=WARN,WF
log4j.category.org.apache.stratum.jcs.auxiliary.lateral=WARN,WF
log4j.category.org.apache.stratum.jcs.auxiliary.remote=WARN,WF
1.16 +23 -0 jakarta-turbine-stratum/src/conf/cache.ccf
Index: cache.ccf
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/src/conf/cache.ccf,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- cache.ccf 24 Feb 2002 06:16:40 -0000 1.15
+++ cache.ccf 24 Feb 2002 07:08:04 -0000 1.16
@@ -9,6 +9,7 @@
jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
+jcs.default.elementattributes=org.apache.stratum.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=3600
jcs.default.elementattributes.IdleTime=1800
@@ -22,6 +23,13 @@
jcs.system.groupIdCache.cacheattributes=org.apache.stratum.jcs.engine.CompositeCacheAttributes
jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.stratum.jcs.engine.memory.lru.LRUMemoryCache
+jcs.system.groupIdCache.elementattributes=org.apache.stratum.jcs.engine.ElementAttributes
+jcs.system.groupIdCache.elementattributes.IsEternal=true
+jcs.system.groupIdCache.elementattributes.MaxLifeSeconds=3600
+jcs.system.groupIdCache.elementattributes.IdleTime=1800
+jcs.system.groupIdCache.elementattributes.IsSpool=true
+jcs.system.groupIdCache.elementattributes.IsRemote=true
+jcs.system.groupIdCache.elementattributes.IsLateral=true
##############################################################
@@ -42,6 +50,7 @@
jcs.region.testCache2.cacheattributes.UseMemoryShrinker=true
jcs.region.testCache2.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.testCache2.cacheattributes.ShrinkerIntervalSeconds=60
+jcs.region.testCache2.elementattributes=org.apache.stratum.jcs.engine.ElementAttributes
jcs.region.testCache2.elementattributes.IsEternal=false
jcs.region.testCache2.elementattributes.MaxLifeSeconds=60
jcs.region.testCache2.elementattributes.IsSpool=true
@@ -54,6 +63,20 @@
jcs.region.testCache3.cacheattributes.UseMemoryShrinker=true
jcs.region.testCache3.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.testCache3.cacheattributes.ShrinkerIntervalSeconds=60
+
+jcs.region.testCache4=DC,LJG
+jcs.region.testCache4.cacheattributes=org.apache.stratum.jcs.engine.CompositeCacheAttributes
+jcs.region.testCache4.cacheattributes.MemoryCacheName=org.apache.stratum.jcs.engine.memory.shrinking.ShrinkingMemoryCache
+jcs.region.testCache4.cacheattributes.UseMemoryShrinker=true
+jcs.region.testCache4.cacheattributes.MaxMemoryIdleTimeSeconds=3600
+jcs.region.testCache4.cacheattributes.ShrinkerIntervalSeconds=60
+jcs.region.testCache4.elementattributes=org.apache.stratum.jcs.engine.ElementAttributes
+jcs.region.testCache4.elementattributes.IsEternal=false
+jcs.region.testCache4.elementattributes.MaxLifeSeconds=60
+jcs.region.testCache4.elementattributes.IsSpool=true
+jcs.region.testCache4.elementattributes.IsRemote=true
+jcs.region.testCache4.elementattributes.IsLateral=true
+
# prefered config
1.7 +7 -0 jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral/LateralCacheRestore.java
Index: LateralCacheRestore.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral/LateralCacheRestore.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- LateralCacheRestore.java 17 Feb 2002 07:16:32 -0000 1.6
+++ LateralCacheRestore.java 24 Feb 2002 07:08:04 -0000 1.7
@@ -7,6 +7,8 @@
import org.apache.stratum.jcs.auxiliary.lateral.socket.udp.LateralUDPService;
+import org.apache.stratum.jcs.auxiliary.lateral.javagroups.LateralJGService;
+
import org.apache.stratum.jcs.engine.behavior.ICacheRestore;
import org.apache.commons.logging.Log;
@@ -59,6 +61,11 @@
if ( lcm.lca.getTransmissionType() == lcm.lca.UDP )
{
lateralObj = new LateralUDPService( lcm.lca );
+ }
+ else
+ if ( lcm.lca.getTransmissionType() == lcm.lca.JAVAGROUPS )
+ {
+ lateralObj = new LateralJGService( lcm.lca );
}
else
if ( lcm.lca.getTransmissionType() == lcm.lca.TCP )
1.9 +2 -0 jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral/LateralCacheManager.java
Index: LateralCacheManager.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/lateral/LateralCacheManager.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- LateralCacheManager.java 24 Feb 2002 06:16:16 -0000 1.8
+++ LateralCacheManager.java 24 Feb 2002 07:08:04 -0000 1.9
@@ -289,6 +289,8 @@
log.error( e );
}
+ // TODO: need listener repair
+
// if ( log.isDebugEnabled() )
// {
// log.debug("LateralManager stats : " + getStats());
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>