You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by as...@apache.org on 2004/07/08 02:50:47 UTC
cvs commit: jakarta-turbine-jcs/src/test-conf TestBDBJEDiskCacheCon.ccf je.properties log4j.properties
asmuts 2004/07/07 17:50:47
Modified: src/test-conf log4j.properties
Added: src/test-conf TestBDBJEDiskCacheCon.ccf je.properties
Log:
Berkeley DB JE unit test
Revision Changes Path
1.4 +14 -7 jakarta-turbine-jcs/src/test-conf/log4j.properties
Index: log4j.properties
===================================================================
RCS file: /home/cvs/jakarta-turbine-jcs/src/test-conf/log4j.properties,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- log4j.properties 15 May 2002 20:11:29 -0000 1.3
+++ log4j.properties 8 Jul 2004 00:50:47 -0000 1.4
@@ -1,8 +1,15 @@
-# For unit testing, all output goes to bin/test/logs/jcs.log
+log4j.rootCategory=WARN, stdout, logfile
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
+
+log4j.appender.logfile=org.apache.log4j.RollingFileAppender
+log4j.appender.logfile.File=target/test-sandbox/logs/jcs.log
+log4j.appender.logfile.MaxFileSize=512KB
+# Keep three backup files
+log4j.appender.logfile.MaxBackupIndex=3
+log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
+#Pattern to output : date priority [category] - <message>line_separator
+log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - <%m>%n
-log4j.category.org.apache.jcs = DEBUG, jcs
-log4j.appender.jcs = org.apache.log4j.FileAppender
-log4j.appender.jcs.file = target/test-sandbox/logs/jcs.log
-log4j.appender.jcs.layout = org.apache.log4j.PatternLayout
-log4j.appender.jcs.layout.conversionPattern = %d [%t] %-5p %c - %m%n
-log4j.appender.jcs.append = false
1.1 jakarta-turbine-jcs/src/test-conf/TestBDBJEDiskCacheCon.ccf
Index: TestBDBJEDiskCacheCon.ccf
===================================================================
# Cache configuration for the 'TestDiskCache' test. The memory cache has a
# a maximum of 100 objects, so objects should get pushed into the disk cache
jcs.default=indexedDiskCache
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
# SYSTEM GROUP ID CACHE
jcs.system.groupIdCache=indexedDiskCache
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
##### CACHE REGIONS FOR TEST
jcs.region.indexedRegion1=indexedDiskCache
jcs.region.indexedRegion1.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.indexedRegion1.cacheattributes.MaxObjects=100
jcs.region.indexedRegion1.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.indexedRegion2=indexedDiskCache
jcs.region.indexedRegion2.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.indexedRegion2.cacheattributes.MaxObjects=100
jcs.region.indexedRegion2.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.indexedRegion3=indexedDiskCache
jcs.region.indexedRegion3.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.indexedRegion3.cacheattributes.MaxObjects=100
jcs.region.indexedRegion3.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.indexedRegion4=indexedDiskCache
jcs.region.indexedRegion4.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.indexedRegion4.cacheattributes.MaxObjects=100
jcs.region.indexedRegion4.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.indexedRegion4.cacheattributes.UseMemoryShrinker=false
##### AUXILIARY CACHES
# Berkeley DB JE
jcs.auxiliary.indexedDiskCache=org.apache.jcs.auxiliary.disk.bdbje.BDBJECacheFactory
jcs.auxiliary.indexedDiskCache.attributes=org.apache.jcs.auxiliary.disk.bdbje.BDBJECacheAttributes
jcs.auxiliary.indexedDiskCache.attributes.DiskPath=target/test-sandbox/bdbje-disk-cache-conc
1.1 jakarta-turbine-jcs/src/test-conf/je.properties
Index: je.properties
===================================================================
# Property file for unit test usage. Usually, all
# unit tests should run w/out a je.properties file, so
# the test can have total control over its environment.
# It may be useful to use a property file when debugging.
# This file should always be checked in with all properties
# commented out.
# $Id: je.properties,v 1.1 2004/07/08 00:50:47 asmuts Exp $
#je.env.forcedYield=false
#java.util.logging.ConsoleHandler.on=true
#java.util.logging.FileHandler.on=true
#java.util.logging.level=INFO
#je.env.runINCompressor=true
#je.compressor.deadlockRetry=3
#je.compressor.lockTimeout=5000
#je.env.runEvictor=true
#je.maxMemory defaults to 93% of jdb.maxMemory unless specified
je.maxMemory=512
#je.evictor.nodeScanPercentage=25
#je.evictor.evictionBatchPercentage=25
#je.env.runCheckpointer=true
#je.checkpointer.deadlockRetry=3
#je.verify.tree.dump=true
#je.verify.inlist=true
#je.verify.throw=false
#je.env.runCleaner=true
#je.cleaner.deadlockRetry=3
#je.cleaner.lockTimeout=5000
#je.cleaner.expunge=false
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org