[jbosscache-commits] JBoss Cache SVN: r7761 - benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Mon Feb 23 08:50:06 EST 2009


Author: manik.surtani at jboss.com
Date: 2009-02-23 08:50:05 -0500 (Mon, 23 Feb 2009)
New Revision: 7761

Modified:
   benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers/WhirlyCacheTest.java
   benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers/WhirlyCacheWrapper.java
Log:
Updated whirlycache wrapper

Modified: benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers/WhirlyCacheTest.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers/WhirlyCacheTest.java	2009-02-23 13:01:39 UTC (rev 7760)
+++ benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers/WhirlyCacheTest.java	2009-02-23 13:50:05 UTC (rev 7761)
@@ -4,23 +4,20 @@
 
 public class WhirlyCacheTest
 {
-
    public static void main(String[] args) throws Exception
    {
-
-
       CacheWrapper w = new WhirlyCacheWrapper();
       w.init(null);
-      w.setUp();
       String k = "k", v = "v";
-
       w.put(null, k, v);
-
       System.out.println("Value is " + w.get(null, k));
-
       w.empty();
-
       System.out.println("Value is " + w.get(null, k));
-
+      w.tearDown();
+      w.init(null);
+      w.put(null, k, v);
+      System.out.println("Value is " + w.get(null, k));
+      w.empty();
+      System.out.println("Value is " + w.get(null, k));
    }
 }
\ No newline at end of file

Modified: benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers/WhirlyCacheWrapper.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers/WhirlyCacheWrapper.java	2009-02-23 13:01:39 UTC (rev 7760)
+++ benchmarks/benchmark-fwk/trunk/cache-products/whirlycache-1.0.1/src/org/cachebench/cachewrappers/WhirlyCacheWrapper.java	2009-02-23 13:50:05 UTC (rev 7761)
@@ -37,7 +37,7 @@
    */
    public void tearDown() throws Exception
    {
-      CacheManager.getInstance().destroy();
+      empty();      
    }
 
    public void empty() throws Exception




More information about the jbosscache-commits mailing list