Author: manik.surtani(a)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
Show replies by date