Class ThreadGroup

    • Constructor Detail

      • ThreadGroup

        public ThreadGroup()
        No-arg constructor.
    • Method Detail

      • setScheduler

        public void setScheduler​(boolean Scheduler)
        Set whether scheduler is being used
        Parameters:
        Scheduler - true is scheduler is to be used
      • getScheduler

        public boolean getScheduler()
        Get whether scheduler is being used
        Returns:
        true if scheduler is being used
      • setStartTime

        public void setStartTime​(long stime)
        Set the absolute StartTime value.
        Parameters:
        stime - - the StartTime value.
      • getStartTime

        public long getStartTime()
        Get the absolute start time value.
        Returns:
        the start time value.
      • getDuration

        public long getDuration()
        Get the desired duration of the thread group test run
        Returns:
        the duration (in secs)
      • setDuration

        public void setDuration​(long duration)
        Set the desired duration of the thread group test run
        Parameters:
        duration - in seconds
      • getDelay

        public long getDelay()
        Get the startup delay
        Returns:
        the delay (in secs)
      • setDelay

        public void setDelay​(long delay)
        Set the startup delay
        Parameters:
        delay - in seconds
      • setEndTime

        public void setEndTime​(long etime)
        Set the EndTime value.
        Parameters:
        etime - - the EndTime value.
      • getEndTime

        public long getEndTime()
        Get the end time value.
        Returns:
        the end time value.
      • setRampUp

        public void setRampUp​(int rampUp)
        Set the ramp-up value.
        Parameters:
        rampUp - the ramp-up value.
      • getRampUp

        public int getRampUp()
        Get the ramp-up value.
        Returns:
        the ramp-up value.
      • stopThread

        public boolean stopThread​(String threadName,
                                  boolean now)
        Stop thread called threadName:
        1. stop JMeter thread
        2. interrupt JMeter thread
        3. interrupt underlying thread
        Specified by:
        stopThread in class AbstractThreadGroup
        Parameters:
        threadName - String thread name
        now - boolean for stop
        Returns:
        true if thread stopped
      • threadFinished

        public void threadFinished​(JMeterThread thread)
        Called by JMeterThread when it finishes