db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/performance PerfHandle.java
Date Sat, 07 Jun 2003 10:21:46 GMT
brj         2003/06/07 03:21:46

  Modified:    src/test/org/apache/ojb/performance PerfHandle.java
  Log:
  some style fixes
  
  Revision  Changes    Path
  1.5       +10 -10    db-ojb/src/test/org/apache/ojb/performance/PerfHandle.java
  
  Index: PerfHandle.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/performance/PerfHandle.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PerfHandle.java	9 Apr 2003 10:06:08 -0000	1.4
  +++ PerfHandle.java	7 Jun 2003 10:21:46 -0000	1.5
  @@ -13,7 +13,7 @@
   public abstract class PerfHandle implements Runnable
   {
       private String PREFIX_LOG = "[" + this.getClass().getName() + "] ";
  -    private PerfArticle[] arr;
  +    private PerfArticle[] m_arr;
       private String threadName;
       private PerfTest test;
       private String objectName;
  @@ -122,11 +122,11 @@
        */
       public void run()
       {
  -        arr = new PerfArticle[PerfMain.getIterationsPerThread()];
  +        m_arr = new PerfArticle[PerfMain.getIterationsPerThread()];
           for (int i = 0; i < PerfMain.getIterationsPerThread(); i++)
           {
               PerfArticle a = getPreparedPerfArticle(getTestObjectName());
  -            arr[i] = a;
  +            m_arr[i] = a;
           }
   
           try
  @@ -136,14 +136,14 @@
               if (!PerfMain.isUseStressMode())
               {
                   period = System.currentTimeMillis();
  -                insertNewArticles(arr);
  +                insertNewArticles(m_arr);
                   period = System.currentTimeMillis() - period;
                   test.addTime(1, period);
               }
               else
               {
                   period = System.currentTimeMillis();
  -                insertNewArticlesStress(arr);
  +                insertNewArticlesStress(m_arr);
                   period = System.currentTimeMillis() - period;
                   test.addTime(1, period);
               }
  @@ -156,14 +156,14 @@
               if (!PerfMain.isUseStressMode())
               {
                   period = System.currentTimeMillis();
  -                deleteArticles(arr);
  +                deleteArticles(m_arr);
                   period = System.currentTimeMillis() - period;
                   test.addTime(3, period);
               }
               else
               {
                   period = System.currentTimeMillis();
  -                deleteArticlesStress(arr);
  +                deleteArticlesStress(m_arr);
                   period = System.currentTimeMillis() - period;
                   test.addTime(3, period);
               }
  @@ -191,10 +191,10 @@
               fetchCount++;
               iter.next();
           }
  -        if (fetchCount != arr.length)
  +        if (fetchCount != m_arr.length)
           {
               System.out.println("## Read objects: Could not found number of created objects,
expected " +
  -                    (arr.length) + " found " + fetchCount + " ##");
  +                    (m_arr.length) + " found " + fetchCount + " ##");
           }
           return true;
       }
  
  
  

Mime
View raw message