[jboss-cvs] JBossCache/tests/perf/org/jboss/cache ...

Manik Surtani msurtani at jboss.com
Tue Jul 18 06:50:47 EDT 2006


  User: msurtani
  Date: 06/07/18 06:50:47

  Modified:    tests/perf/org/jboss/cache   FieldUpdateEmulator.java
                        Server.java
  Log:
  Checked in new Habanero interfaces
  Updated codebase to deal with new interfaces
  
  Revision  Changes    Path
  1.3       +14 -35    JBossCache/tests/perf/org/jboss/cache/FieldUpdateEmulator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FieldUpdateEmulator.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/FieldUpdateEmulator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- FieldUpdateEmulator.java	2 May 2006 08:46:21 -0000	1.2
  +++ FieldUpdateEmulator.java	18 Jul 2006 10:50:47 -0000	1.3
  @@ -7,23 +7,26 @@
   
   package org.jboss.cache;
   
  +import EDU.oswego.cs.dl.util.concurrent.CountDown;
   import org.jboss.cache.aop.PojoCache;
  -import org.jboss.cache.transaction.DummyTransactionManager;
  -import org.jboss.cache.data.Student;
   import org.jboss.cache.data.Address;
   import org.jboss.cache.data.Course;
   import org.jboss.cache.data.RandomString;
  +import org.jboss.cache.data.Student;
  +import org.jboss.cache.transaction.DummyTransactionManager;
   import org.jgroups.View;
   
  -import java.util.*;
  +import javax.transaction.SystemException;
  +import javax.transaction.Transaction;
  +import javax.transaction.TransactionManager;
   import java.io.BufferedReader;
   import java.io.FileReader;
  -
  -import EDU.oswego.cs.dl.util.concurrent.CountDown;
  -
  -import javax.transaction.TransactionManager;
  -import javax.transaction.Transaction;
  -import javax.transaction.SystemException;
  +import java.util.ArrayList;
  +import java.util.List;
  +import java.util.Properties;
  +import java.util.Random;
  +import java.util.StringTokenizer;
  +import java.util.Vector;
   
   /**
    * Use the same configuration as PojoCache but don't do any AOP. Just emulates it.
  @@ -284,37 +287,13 @@
   //      server.destroyCache();
      }
   
  -   public static class ViewListener implements TreeCacheListener {
  +   public static class ViewListener extends AbstractCacheListener
  +   {
         List addrList_; // List of address
   
         public ViewListener(List addrList) {
            addrList_ = addrList;
         }
  -
  -      public void nodeCreated(Fqn fqn) {
  -      }
  -
  -      public void nodeRemoved(Fqn fqn) {
  -      }
  -
  -      public void nodeLoaded(Fqn fqn) {
  -      }
  -
  -      public void nodeEvicted(Fqn fqn) {
  -      }
  -
  -      public void nodeModified(Fqn fqn) {
  -      }
  -
  -      public void nodeVisited(Fqn fqn) {
  -      }
  -
  -      public void cacheStarted(TreeCache cache) {
  -      }
  -
  -      public void cacheStopped(TreeCache cache) {
  -      }
  -
         public void viewChange(View new_view)  // might be MergeView after merging
         {
            Vector vector = new_view.getMembers();
  
  
  
  1.51      +14 -36    JBossCache/tests/perf/org/jboss/cache/Server.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Server.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/Server.java,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -b -r1.50 -r1.51
  --- Server.java	12 Jun 2006 22:26:28 -0000	1.50
  +++ Server.java	18 Jul 2006 10:50:47 -0000	1.51
  @@ -9,23 +9,26 @@
   package org.jboss.cache;
   
   
  -import org.jgroups.View;
  -import org.jboss.cache.data.Student;
  +import EDU.oswego.cs.dl.util.concurrent.CountDown;
  +import org.jboss.cache.aop.PojoCache;
   import org.jboss.cache.data.Address;
   import org.jboss.cache.data.Course;
   import org.jboss.cache.data.RandomString;
  +import org.jboss.cache.data.Student;
   import org.jboss.cache.transaction.DummyTransactionManager;
  -import org.jboss.cache.aop.PojoCache;
  +import org.jgroups.View;
   
  +import javax.transaction.SystemException;
  +import javax.transaction.Transaction;
  +import javax.transaction.TransactionManager;
   import java.io.BufferedReader;
   import java.io.FileReader;
  -import java.util.*;
  -
  -import EDU.oswego.cs.dl.util.concurrent.CountDown;
  -
  -import javax.transaction.TransactionManager;
  -import javax.transaction.Transaction;
  -import javax.transaction.SystemException;
  +import java.util.ArrayList;
  +import java.util.List;
  +import java.util.Properties;
  +import java.util.Random;
  +import java.util.StringTokenizer;
  +import java.util.Vector;
   
   /**
    * A standalone dummy server that accepts data from other replicated cache.
  @@ -296,37 +299,12 @@
   //      server.destroyCache();
      }
   
  -   public static class ViewListener implements TreeCacheListener {
  +   public static class ViewListener extends AbstractCacheListener {
         List addrList_; // List of address
   
         public ViewListener(List addrList) {
            addrList_ = addrList;
         }
  -
  -      public void nodeCreated(Fqn fqn) {
  -      }
  -
  -      public void nodeRemoved(Fqn fqn) {
  -      }
  -
  -      public void nodeLoaded(Fqn fqn) {
  -      }
  -
  -      public void nodeEvicted(Fqn fqn) {
  -      }
  -
  -      public void nodeModified(Fqn fqn) {
  -      }
  -
  -      public void nodeVisited(Fqn fqn) {
  -      }
  -
  -      public void cacheStarted(TreeCache cache) {
  -      }
  -
  -      public void cacheStopped(TreeCache cache) {
  -      }
  -
         public void viewChange(View new_view)  // might be MergeView after merging
         {
            Vector vector = new_view.getMembers();
  
  
  



More information about the jboss-cvs-commits mailing list