[jboss-cvs] CacheBenchFwk/src/org/cachebench/cachewrappers ...

Manik Surtani manik at jboss.org
Tue Mar 13 10:50:46 EDT 2007


  User: msurtani
  Date: 07/03/13 10:50:46

  Modified:    src/org/cachebench/cachewrappers    
                        TangosolCacheWrapper.java EHCacheWrapper.java
                        JBossCache200Wrapper.java JBossCacheWrapper.java
  Log:
  wc
  
  Revision  Changes    Path
  1.3       +3 -10     CacheBenchFwk/src/org/cachebench/cachewrappers/TangosolCacheWrapper.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TangosolCacheWrapper.java
  ===================================================================
  RCS file: /cvsroot/jboss/CacheBenchFwk/src/org/cachebench/cachewrappers/TangosolCacheWrapper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- TangosolCacheWrapper.java	13 Mar 2007 14:43:02 -0000	1.2
  +++ TangosolCacheWrapper.java	13 Mar 2007 14:50:46 -0000	1.3
  @@ -1,13 +1,5 @@
   package org.cachebench.cachewrappers;
   
  -import org.cachebench.CacheWrapper;
  -import org.cachebench.SerializableCacheWrapper;
  -import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogFactory;
  -
  -import java.util.Properties;
  -import java.io.Serializable;
  -
   //import com.tangosol.net.NamedCache;
   //import com.tangosol.net.CacheFactory;
   
  @@ -15,9 +7,10 @@
    * An Implementation of the CacheWrapper that used tangosol coherence 3.0
    *
    * @author Imran Bohoran
  - * @version $Id: TangosolCacheWrapper.java,v 1.2 2007/03/13 14:43:02 msurtani Exp $
  + * @version $Id: TangosolCacheWrapper.java,v 1.3 2007/03/13 14:50:46 msurtani Exp $
    */
  -public class TangosolCacheWrapper {//implements SerializableCacheWrapper {
  +public class TangosolCacheWrapper
  +{//implements SerializableCacheWrapper {
      /*
       NamedCache cache;
       private Log logger = LogFactory.getLog("org.cachebench.cachewrappers.TangosolCacheWrapper");
  
  
  
  1.4       +78 -77    CacheBenchFwk/src/org/cachebench/cachewrappers/EHCacheWrapper.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EHCacheWrapper.java
  ===================================================================
  RCS file: /cvsroot/jboss/CacheBenchFwk/src/org/cachebench/cachewrappers/EHCacheWrapper.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- EHCacheWrapper.java	27 Dec 2005 05:28:44 -0000	1.3
  +++ EHCacheWrapper.java	13 Mar 2007 14:50:46 -0000	1.4
  @@ -1,8 +1,5 @@
   package org.cachebench.cachewrappers;
   
  -import java.io.Serializable;
  -import java.net.URL;
  -import java.util.Properties;
   import net.sf.ehcache.Cache;
   import net.sf.ehcache.CacheManager;
   import net.sf.ehcache.Element;
  @@ -10,12 +7,16 @@
   import org.apache.commons.logging.LogFactory;
   import org.cachebench.SerializableCacheWrapper;
   
  +import java.io.Serializable;
  +import java.net.URL;
  +import java.util.Properties;
  +
   
   /**
    * An implementation of SerializableCacheWrapper that uses EHCache as an underlying implementation.
    *
    * @author Manik Surtani (manik at surtani.org)
  - * @version $Id: EHCacheWrapper.java,v 1.3 2005/12/27 05:28:44 imran Exp $
  + * @version $Id: EHCacheWrapper.java,v 1.4 2007/03/13 14:50:46 msurtani Exp $
    */
   public class EHCacheWrapper implements SerializableCacheWrapper
   {
  @@ -32,7 +33,7 @@
   //        {
               logger.debug("Initializing the cache");
               //parameters.
  -            URL url = getClass().getResource( parameters.getProperty("config") );
  +      URL url = getClass().getResource(parameters.getProperty("config"));
               manager = CacheManager.create(url);
               logger.debug("Finish Initializing the cache");
   //        }
  @@ -87,7 +88,7 @@
       {
   //        try
   //        {
  -            return cache.get( key );
  +      return cache.get(key);
   //        }
   //        catch (Exception e)
   //        {
  
  
  
  1.2       +1 -1      CacheBenchFwk/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: JBossCache200Wrapper.java
  ===================================================================
  RCS file: /cvsroot/jboss/CacheBenchFwk/src/org/cachebench/cachewrappers/JBossCache200Wrapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- JBossCache200Wrapper.java	13 Mar 2007 14:43:02 -0000	1.1
  +++ JBossCache200Wrapper.java	13 Mar 2007 14:50:46 -0000	1.2
  @@ -2,7 +2,6 @@
   
   import org.cachebench.CacheWrapper;
   import org.jboss.cache.Cache;
  -import org.jboss.cache.CacheFactory;
   import org.jboss.cache.DefaultCacheFactory;
   import org.jboss.cache.Fqn;
   
  @@ -11,6 +10,7 @@
   public class JBossCache200Wrapper implements CacheWrapper
   {
      private Cache cache;
  +
      public void init(Properties parameters) throws Exception
      {
         cache = DefaultCacheFactory.getInstance().createCache(parameters.getProperty("config"));
  
  
  
  1.5       +4 -8      CacheBenchFwk/src/org/cachebench/cachewrappers/JBossCacheWrapper.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: JBossCacheWrapper.java
  ===================================================================
  RCS file: /cvsroot/jboss/CacheBenchFwk/src/org/cachebench/cachewrappers/JBossCacheWrapper.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- JBossCacheWrapper.java	13 Mar 2007 14:43:02 -0000	1.4
  +++ JBossCacheWrapper.java	13 Mar 2007 14:50:46 -0000	1.5
  @@ -1,10 +1,5 @@
   package org.cachebench.cachewrappers;
   
  -import java.util.HashMap;
  -import java.util.Properties;
  -import org.apache.commons.logging.Log;
  -import org.apache.commons.logging.LogFactory;
  -import org.cachebench.CacheWrapper;
   //import org.jboss.cache.PropertyConfigurator;
   //import org.jboss.cache.TreeCache;
   
  @@ -13,9 +8,10 @@
    * An implementation of CacheWrapper that uses JBossCache as an underlying implementation.
    *
    * @author Manik Surtani (manik at surtani.org)
  - * @version $Id: JBossCacheWrapper.java,v 1.4 2007/03/13 14:43:02 msurtani Exp $
  + * @version $Id: JBossCacheWrapper.java,v 1.5 2007/03/13 14:50:46 msurtani Exp $
    */
  -public class JBossCacheWrapper {//implements CacheWrapper
  +public class JBossCacheWrapper
  +{//implements CacheWrapper
   /*{
       private TreeCache tree;
       private Log logger = LogFactory.getLog("org.cachebench.cachewrappers.JBossCacheWrapper");
  
  
  



More information about the jboss-cvs-commits mailing list