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

Manik Surtani manik at jboss.org
Wed Apr 18 15:09:31 EDT 2007


  User: msurtani
  Date: 07/04/18 15:09:31

  Modified:    src/org/cachebench/config   TestCase.java Configuration.java
  Log:
  Updated loads of stuff
  
  Revision  Changes    Path
  1.3       +2 -2      CacheBenchFwk/src/org/cachebench/config/TestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/CacheBenchFwk/src/org/cachebench/config/TestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- TestCase.java	13 Mar 2007 14:50:46 -0000	1.2
  +++ TestCase.java	18 Apr 2007 19:09:31 -0000	1.3
  @@ -11,7 +11,7 @@
      private String cacheWrapper;
   
      private Properties params = new Properties();
  -   private List tests = new ArrayList();
  +   private List<TestConfig> tests = new ArrayList<TestConfig>();
   
   
      public String getName()
  @@ -50,7 +50,7 @@
         this.cacheWrapper = cacheWrapper;
      }
   
  -   public List getTests()
  +   public List<TestConfig> getTests()
      {
         return this.tests;
      }
  
  
  
  1.3       +18 -7     CacheBenchFwk/src/org/cachebench/config/Configuration.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Configuration.java
  ===================================================================
  RCS file: /cvsroot/jboss/CacheBenchFwk/src/org/cachebench/config/Configuration.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- Configuration.java	13 Mar 2007 14:50:46 -0000	1.2
  +++ Configuration.java	18 Apr 2007 19:09:31 -0000	1.3
  @@ -6,7 +6,7 @@
   
   /**
    * @author Manik Surtani (manik at surtani.org)
  - * @version $Id: Configuration.java,v 1.2 2007/03/13 14:50:46 msurtani Exp $
  + * @version $Id: Configuration.java,v 1.3 2007/04/18 19:09:31 msurtani Exp $
    */
   public class Configuration
   {
  @@ -15,9 +15,10 @@
      private boolean gcBetweenTestsEnabled;
      private boolean emptyCacheBetweenTests;
   
  -   private List testCases = new ArrayList();
  +   private List<TestCase> testCases = new ArrayList<TestCase>();
   
  -   private List reports = new ArrayList();
  +   private List<Report> reports = new ArrayList<Report>();
  +   private int numThreads;
   
   
      public int getSampleSize()
  @@ -60,14 +61,14 @@
         this.emptyCacheBetweenTests = emptyCacheBetweenTests;
      }
   
  -   public Report[] getReports()
  +   public List<Report> getReports()
      {
  -      return (Report[]) reports.toArray(new Report[0]);
  +      return reports;
      }
   
  -   public TestCase[] getTestCases()
  +   public List<TestCase> getTestCases()
      {
  -      return (TestCase[]) testCases.toArray(new TestCase[0]);
  +      return testCases;
      }
   
      public void addTestCase(TestCase testCase)
  @@ -79,4 +80,14 @@
      {
         reports.add(report);
      }
  +
  +   public int getNumThreads()
  +   {
  +      return numThreads;
  +   }
  +
  +   public void setNumThreads(int numThreads)
  +   {
  +      this.numThreads = numThreads;
  +   }
   }
  
  
  



More information about the jboss-cvs-commits mailing list