[jbosscache-commits] JBoss Cache SVN: r5063 - cache-bench-fwk/trunk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Jan 8 09:49:43 EST 2008


Author: mircea.markus
Date: 2008-01-08 09:49:43 -0500 (Tue, 08 Jan 2008)
New Revision: 5063

Modified:
   cache-bench-fwk/trunk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java
Log:
added session simulator test + refactoring

Modified: cache-bench-fwk/trunk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java
===================================================================
--- cache-bench-fwk/trunk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java	2008-01-08 14:29:07 UTC (rev 5062)
+++ cache-bench-fwk/trunk/cache-products/jbosscache-2.0.0/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java	2008-01-08 14:49:43 UTC (rev 5063)
@@ -1,5 +1,7 @@
 package org.cachebench.cachewrappers;
 
+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;
@@ -13,10 +15,13 @@
 public class JBossCache200Wrapper implements CacheWrapper
 {
    private Cache cache;
+   private Log log = LogFactory.getLog(JBossCache200Wrapper.class);
 
    public void init(Map parameters) throws Exception
    {
+      log.info("Creating cache with the following configuration: " + parameters);
       cache = DefaultCacheFactory.getInstance().createCache((String)parameters.get("config"));
+      log.info("Running cache with following config:" + cache.getConfiguration());
    }
 
    public void setUp() throws Exception




More information about the jbosscache-commits mailing list