[jboss-cvs] JBossCache/tests/perf/org/jboss/cache ...
Brian Stansberry
brian.stansberry at jboss.com
Fri Oct 27 15:26:07 EDT 2006
User: bstansberry
Date: 06/10/27 15:26:07
Modified: tests/perf/org/jboss/cache
ConcurrentEvictAndRemoveTest.java
Log:
[JBCACHE-823] Refactor eviction configuration away from EvictionConfiguration interface
Revision Changes Path
1.6 +6 -4 JBossCache/tests/perf/org/jboss/cache/ConcurrentEvictAndRemoveTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ConcurrentEvictAndRemoveTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/ConcurrentEvictAndRemoveTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- ConcurrentEvictAndRemoveTest.java 20 Jul 2006 11:48:27 -0000 1.5
+++ ConcurrentEvictAndRemoveTest.java 27 Oct 2006 19:26:07 -0000 1.6
@@ -8,20 +8,22 @@
package org.jboss.cache;
+import java.util.Random;
+
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
+
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.cache.config.Configuration;
-import org.jboss.cache.eviction.RegionManager;
+import org.jboss.cache.config.EvictionConfig;
import org.jboss.cache.factories.XmlConfigurationParser;
-import java.util.Random;
/**
* Local mode test for concurrent EvictionTimerTask evicting nodes and Client removing nodes from TreeCache.
*
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
* @author <a href="mailto:uwe.lamprecht at gmx.de">Uwe Lamprecht</a> July 29 2004
*/
public final class ConcurrentEvictAndRemoveTest extends TestCase
@@ -127,7 +129,7 @@
final long TIMEOUT_DEFAULT = 100000;
final int MAX_TIMEOUT_FACTOR = 10;
- for(int i = 0; i < RegionManager.CAPACITY; i = i + SEQUENCE_SIZE) {
+ for(int i = 0; i < EvictionConfig.EVENT_QUEUE_SIZE_DEFAULT; i = i + SEQUENCE_SIZE) {
final int sequenceStart = i;
final int sequenceEnd = i + SEQUENCE_SIZE -1;
More information about the jboss-cvs-commits
mailing list