khammond    01/09/26 22:43:55

  Modified:    src/org/apache/jmeter/threads ThreadGroup.java
  Log:
  Added DEFAULT_NUM_THREADS and DEFAULT_RAMP_UP instance variables and 
getDefaultNumThreads() and getDefaultRampUp() instance methods.
  
  Revision  Changes    Path
  1.16      +25 -3     jakarta-jmeter/src/org/apache/jmeter/threads/ThreadGroup.java
  
  Index: ThreadGroup.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/org/apache/jmeter/threads/ThreadGroup.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ThreadGroup.java  2001/08/30 17:19:03     1.15
  +++ ThreadGroup.java  2001/09/27 05:43:55     1.16
  @@ -73,7 +73,7 @@
    *  Apache Foundation
    *
    *@author     Michael Stover
  - *@created    $Date: 2001/08/30 17:19:03 $
  + *@created    $Date: 2001/09/27 05:43:55 $
    *@version    1.0
    ***********************************************************/
   
  @@ -83,11 +83,13 @@
        LoopController control;
        List listeners = new LinkedList();
        List remoteListeners = new LinkedList();
  -     int numThreads = 1;
  +     private final int DEFAULT_NUM_THREADS = 1;
  +     private final int DEFAULT_RAMP_UP = 0;
  +     int numThreads = DEFAULT_NUM_THREADS;
        List timers = new LinkedList();
        private String name;
        private SampleQueue queue = null;
  -     int rampUp = 0;
  +     int rampUp = DEFAULT_RAMP_UP;
        private int threadsStarted = 0;
   
        private static List addableList;
  @@ -199,6 +201,26 @@
        public int getNumThreads()
        {
                return this.numThreads;
  +     }
  +
  +     /************************************************************
  +      *  !ToDoo (Method description)
  +      *
  +      *@return    !ToDo (Return description)
  +      ***********************************************************/
  +     public int getDefaultNumThreads()
  +     {
  +             return this.DEFAULT_NUM_THREADS;
  +     }
  +
  +     /************************************************************
  +      *  !ToDoo (Method description)
  +      *
  +      *@return    !ToDo (Return description)
  +      ***********************************************************/
  +     public int getDefaultRampUp()
  +     {
  +             return this.DEFAULT_RAMP_UP;
        }
   
        public synchronized void resetThreadCount()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to