kg.apc.jmeter.threads
Class AbstractSimpleThreadGroup

java.lang.Object
  extended by org.apache.jmeter.testelement.AbstractTestElement
      extended by org.apache.jmeter.threads.AbstractThreadGroup
          extended by kg.apc.jmeter.threads.AbstractSimpleThreadGroup
All Implemented Interfaces:
Serializable, Cloneable, org.apache.jmeter.control.Controller, org.apache.jmeter.gui.Searchable, org.apache.jmeter.testelement.TestElement, org.apache.jmeter.threads.JMeterThreadMonitor, org.apache.jmeter.threads.TestCompilerHelper
Direct Known Subclasses:
SteppingThreadGroup, UltimateThreadGroup

public abstract class AbstractSimpleThreadGroup
extends org.apache.jmeter.threads.AbstractThreadGroup

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jmeter.threads.AbstractThreadGroup
MAIN_CONTROLLER, NUM_THREADS, ON_SAMPLE_ERROR, ON_SAMPLE_ERROR_CONTINUE, ON_SAMPLE_ERROR_START_NEXT_LOOP, ON_SAMPLE_ERROR_STOPTEST, ON_SAMPLE_ERROR_STOPTEST_NOW, ON_SAMPLE_ERROR_STOPTHREAD
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
AbstractSimpleThreadGroup()
          No-arg constructor.
 
Method Summary
 int numberOfActiveThreads()
           
 void scheduleThread(org.apache.jmeter.threads.JMeterThread thread)
           
protected abstract  void scheduleThread(org.apache.jmeter.threads.JMeterThread thread, long now)
           
 void start(int groupCount, org.apache.jmeter.threads.ListenerNotifier notifier, org.apache.jorphan.collections.ListedHashTree threadGroupTree, org.apache.jmeter.engine.StandardJMeterEngine engine)
           
 void stop()
           
 boolean stopThread(String threadName, boolean now)
           
 void tellThreadsToStop()
           
 void threadFinished(org.apache.jmeter.threads.JMeterThread thread)
           
 boolean verifyThreadsStopped()
           
 void waitThreadsStopped()
           
 
Methods inherited from class org.apache.jmeter.threads.AbstractThreadGroup
addIterationListener, addTestElement, addTestElementOnce, getNumberOfThreads, getNumThreads, getOnErrorStartNextLoop, getOnErrorStopTest, getOnErrorStopTestNow, getOnErrorStopThread, getSamplerController, initialize, isDone, next, removeIterationListener, setNumThreads, setSamplerController, startNextLoop, triggerEndOfLoop
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jmeter.testelement.TestElement
canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
 

Constructor Detail

AbstractSimpleThreadGroup

public AbstractSimpleThreadGroup()
No-arg constructor.

Method Detail

scheduleThread

protected abstract void scheduleThread(org.apache.jmeter.threads.JMeterThread thread,
                                       long now)

scheduleThread

public void scheduleThread(org.apache.jmeter.threads.JMeterThread thread)

start

public void start(int groupCount,
                  org.apache.jmeter.threads.ListenerNotifier notifier,
                  org.apache.jorphan.collections.ListedHashTree threadGroupTree,
                  org.apache.jmeter.engine.StandardJMeterEngine engine)
Specified by:
start in class org.apache.jmeter.threads.AbstractThreadGroup

stopThread

public boolean stopThread(String threadName,
                          boolean now)
Specified by:
stopThread in class org.apache.jmeter.threads.AbstractThreadGroup

threadFinished

public void threadFinished(org.apache.jmeter.threads.JMeterThread thread)

tellThreadsToStop

public void tellThreadsToStop()
Specified by:
tellThreadsToStop in class org.apache.jmeter.threads.AbstractThreadGroup

stop

public void stop()
Specified by:
stop in class org.apache.jmeter.threads.AbstractThreadGroup

numberOfActiveThreads

public int numberOfActiveThreads()
Specified by:
numberOfActiveThreads in class org.apache.jmeter.threads.AbstractThreadGroup

verifyThreadsStopped

public boolean verifyThreadsStopped()
Specified by:
verifyThreadsStopped in class org.apache.jmeter.threads.AbstractThreadGroup

waitThreadsStopped

public void waitThreadsStopped()
Specified by:
waitThreadsStopped in class org.apache.jmeter.threads.AbstractThreadGroup


Copyright © 2013. All Rights Reserved.