[jboss-cvs] JBossCache/tests/perf/org/jboss/cache/loader ...
Manik Surtani
msurtani at jboss.com
Sat Dec 30 12:50:00 EST 2006
User: msurtani
Date: 06/12/30 12:50:00
Modified: tests/perf/org/jboss/cache/loader
JDBCCacheLoaderPerfTest.java
CacheLoaderPerfTest.java
Log:
Major changes to restructure cache and node object model
Revision Changes Path
1.10 +3 -3 JBossCache/tests/perf/org/jboss/cache/loader/JDBCCacheLoaderPerfTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: JDBCCacheLoaderPerfTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/loader/JDBCCacheLoaderPerfTest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- JDBCCacheLoaderPerfTest.java 14 Dec 2006 18:52:40 -0000 1.9
+++ JDBCCacheLoaderPerfTest.java 30 Dec 2006 17:50:00 -0000 1.10
@@ -7,8 +7,8 @@
package org.jboss.cache.loader;
import junit.textui.TestRunner;
+import org.jboss.cache.CacheImpl;
import org.jboss.cache.Fqn;
-import org.jboss.cache.TreeCache;
import org.jboss.cache.misc.TestingUtil;
import java.util.HashMap;
@@ -23,7 +23,7 @@
*/
public class JDBCCacheLoaderPerfTest extends AbstractCacheLoaderTestBase
{
- private TreeCache cache;
+ private CacheImpl cache;
private Random random = new Random();
@@ -40,7 +40,7 @@
protected void setUp() throws Exception
{
if (cache != null) tearDown();
- cache = new TreeCache();
+ cache = new CacheImpl();
cache.getConfiguration().setCacheMode("local");
cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
configureCache();
1.10 +3 -3 JBossCache/tests/perf/org/jboss/cache/loader/CacheLoaderPerfTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheLoaderPerfTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/loader/CacheLoaderPerfTest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- CacheLoaderPerfTest.java 25 Oct 2006 04:51:38 -0000 1.9
+++ CacheLoaderPerfTest.java 30 Dec 2006 17:50:00 -0000 1.10
@@ -7,8 +7,8 @@
package org.jboss.cache.loader;
import junit.textui.TestRunner;
+import org.jboss.cache.CacheImpl;
import org.jboss.cache.Fqn;
-import org.jboss.cache.TreeCache;
import org.jboss.cache.misc.TestingUtil;
import java.io.File;
@@ -21,7 +21,7 @@
*/
public class CacheLoaderPerfTest extends AbstractCacheLoaderTestBase
{
- private TreeCache cache;
+ private CacheImpl cache;
private long totalTime = 0;
private Random random = new Random();
@@ -34,7 +34,7 @@
{
if (cache != null) tearDown();
String tmpLocation = System.getProperty("java.io.tmpdir", ".") + File.separator + "JBossCache-CacheLoaderPerfTest";
- cache = new TreeCache();
+ cache = new CacheImpl();
cache.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("", "org.jboss.cache.loader.FileCacheLoader", "location=" + tmpLocation, false, false, false));
File dir = new File(tmpLocation);
if (!dir.exists()) dir.mkdirs();
More information about the jboss-cvs-commits
mailing list