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

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Apr 29 09:35:28 EDT 2008


Author: mircea.markus
Date: 2008-04-29 09:35:27 -0400 (Tue, 29 Apr 2008)
New Revision: 5751

Modified:
   benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-2.2.0/src/org/cachebench/cachewrappers/JBossCache220Wrapper.java
Log:
added 2.2.0 bench support


Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-2.2.0/src/org/cachebench/cachewrappers/JBossCache220Wrapper.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-2.2.0/src/org/cachebench/cachewrappers/JBossCache220Wrapper.java	2008-04-29 13:27:54 UTC (rev 5750)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-2.2.0/src/org/cachebench/cachewrappers/JBossCache220Wrapper.java	2008-04-29 13:35:27 UTC (rev 5751)
@@ -3,10 +3,7 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.cachebench.CacheWrapper;
-import org.jboss.cache.Cache;
-import org.jboss.cache.CacheSPI;
-import org.jboss.cache.DefaultCacheFactory;
-import org.jboss.cache.Fqn;
+import org.jboss.cache.*;
 import org.jboss.cache.buddyreplication.GravitateResult;
 import org.jboss.cache.marshall.NodeData;
 
@@ -71,7 +68,7 @@
    public Object getReplicatedData(String key) throws Exception
    {
       CacheSPI cacheSpi = (CacheSPI) cache;
-      GravitateResult result = cacheSpi.gravitateData(new Fqn("test", key), true, null);
+      GravitateResult result = cacheSpi.gravitateData(new Fqn("test", key), true, new InvocationContext());
       if (!result.isDataFound())
       {
          //totall replication?




More information about the jbosscache-commits mailing list