Java Doc for ThreadGroup.java in  » Testing » jakarta-jmeter » org » apache » jmeter » threads » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jakarta jmeter » org.apache.jmeter.threads 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jmeter.testelement.AbstractTestElement
      org.apache.jmeter.threads.ThreadGroup

ThreadGroup
public class ThreadGroup extends AbstractTestElement implements SampleListener,Serializable,Controller(Code)
ThreadGroup
author:
   Michael Stover
version:
   $Id: ThreadGroup.java 493779 2007-01-07 17:46:38Z sebb $


Field Summary
final public static  StringDELAY
    
final public static  StringDURATION
    
final public static  StringEND_TIME
    
final public static  StringMAIN_CONTROLLER
    
final public static  StringNUM_THREADS
    
final public static  StringON_SAMPLE_ERROR
    
final public static  StringON_SAMPLE_ERROR_CONTINUE
    
final public static  StringON_SAMPLE_ERROR_STOPTEST
    
final public static  StringON_SAMPLE_ERROR_STOPTHREAD
    
final public static  StringRAMP_TIME
    
final public static  StringSCHEDULER
    
final public static  StringSTART_TIME
    

Constructor Summary
public  ThreadGroup()
     No-arg constructor.

Method Summary
public  voidaddIterationListener(LoopIterationListener lis)
    
public  voidaddTestElement(TestElement child)
     Add a test element.
synchronized  voiddecrNumberOfThreads()
    
public  intgetDefaultNumThreads()
     Get the default number of threads.
public  intgetDefaultRampUp()
     Get the default ramp-up value.
public  longgetDelay()
    
public  longgetDuration()
    
public  longgetEndTime()
     Get the end time value.
public  intgetNumThreads()
     Get the number of threads.
public synchronized  intgetNumberOfThreads()
    
public  booleangetOnErrorStopTest()
     Check if a sampler error should cause test to stop.
public  booleangetOnErrorStopThread()
     Check if a sampler error should cause thread to stop.
public  intgetRampUp()
     Get the ramp-up value.
public  ControllergetSamplerController()
     Get the sampler controller.
public  booleangetScheduler()
     Get the Scheduler value.
public  longgetStartTime()
     Get the start time value.
synchronized  voidincrNumberOfThreads()
    
public  voidinitialize()
    
public  booleanisDone()
    
public  Samplernext()
    
public  voidsampleOccurred(SampleEvent e)
     A sample has occurred.
public  voidsampleStarted(SampleEvent e)
     A sample has started.
public  voidsampleStopped(SampleEvent e)
     A sample has stopped.
public  voidsetDelay(long delay)
    
public  voidsetDuration(long duration)
    
public  voidsetEndTime(long etime)
     Set the EndTime value.
public  voidsetNumThreads(int numThreads)
    
public  voidsetRampUp(int rampUp)
     Set the ramp-up value.
public  voidsetSamplerController(LoopController c)
     Set the sampler controller.
public  voidsetScheduler(boolean Scheduler)
     Set the Scheduler value.
public  voidsetStartTime(long stime)
     Set the StartTime value.

Field Detail
DELAY
final public static String DELAY(Code)



DURATION
final public static String DURATION(Code)



END_TIME
final public static String END_TIME(Code)



MAIN_CONTROLLER
final public static String MAIN_CONTROLLER(Code)



NUM_THREADS
final public static String NUM_THREADS(Code)



ON_SAMPLE_ERROR
final public static String ON_SAMPLE_ERROR(Code)



ON_SAMPLE_ERROR_CONTINUE
final public static String ON_SAMPLE_ERROR_CONTINUE(Code)



ON_SAMPLE_ERROR_STOPTEST
final public static String ON_SAMPLE_ERROR_STOPTEST(Code)



ON_SAMPLE_ERROR_STOPTHREAD
final public static String ON_SAMPLE_ERROR_STOPTHREAD(Code)



RAMP_TIME
final public static String RAMP_TIME(Code)



SCHEDULER
final public static String SCHEDULER(Code)



START_TIME
final public static String START_TIME(Code)




Constructor Detail
ThreadGroup
public ThreadGroup()(Code)
No-arg constructor.




Method Detail
addIterationListener
public void addIterationListener(LoopIterationListener lis)(Code)



addTestElement
public void addTestElement(TestElement child)(Code)
Add a test element.
Parameters:
  child - the test element to add.



decrNumberOfThreads
synchronized void decrNumberOfThreads()(Code)



getDefaultNumThreads
public int getDefaultNumThreads()(Code)
Get the default number of threads. the default number of threads.



getDefaultRampUp
public int getDefaultRampUp()(Code)
Get the default ramp-up value. the default ramp-up value (in seconds).



getDelay
public long getDelay()(Code)
Get the delay the delay (in secs)



getDuration
public long getDuration()(Code)
Get the duration the duration (in secs)



getEndTime
public long getEndTime()(Code)
Get the end time value. the end time value.



getNumThreads
public int getNumThreads()(Code)
Get the number of threads. the number of threads.



getNumberOfThreads
public synchronized int getNumberOfThreads()(Code)



getOnErrorStopTest
public boolean getOnErrorStopTest()(Code)
Check if a sampler error should cause test to stop. true if should stop



getOnErrorStopThread
public boolean getOnErrorStopThread()(Code)
Check if a sampler error should cause thread to stop. true if should stop



getRampUp
public int getRampUp()(Code)
Get the ramp-up value. the ramp-up value.



getSamplerController
public Controller getSamplerController()(Code)
Get the sampler controller. the sampler controller.



getScheduler
public boolean getScheduler()(Code)
Get the Scheduler value. the Scheduler value.



getStartTime
public long getStartTime()(Code)
Get the start time value. the start time value.



incrNumberOfThreads
synchronized void incrNumberOfThreads()(Code)



initialize
public void initialize()(Code)



isDone
public boolean isDone()(Code)



next
public Sampler next()(Code)



sampleOccurred
public void sampleOccurred(SampleEvent e)(Code)
A sample has occurred.
Parameters:
  e - the sample event.



sampleStarted
public void sampleStarted(SampleEvent e)(Code)
A sample has started.
Parameters:
  e - the sample event.



sampleStopped
public void sampleStopped(SampleEvent e)(Code)
A sample has stopped.
Parameters:
  e - the sample event



setDelay
public void setDelay(long delay)(Code)
Set the delay
Parameters:
  delay - in seconds



setDuration
public void setDuration(long duration)(Code)
Set the duration
Parameters:
  duration - in seconds



setEndTime
public void setEndTime(long etime)(Code)
Set the EndTime value.
Parameters:
  etime - -the EndTime value.



setNumThreads
public void setNumThreads(int numThreads)(Code)
Set the number of threads to start
Parameters:
  numThreads - the number of threads.



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



setSamplerController
public void setSamplerController(LoopController c)(Code)
Set the sampler controller.
Parameters:
  c - the sampler controller.



setScheduler
public void setScheduler(boolean Scheduler)(Code)
Set the Scheduler value.
Parameters:
  Scheduler - the Scheduler value.



setStartTime
public void setStartTime(long stime)(Code)
Set the StartTime value.
Parameters:
  stime - -the StartTime value.



Methods inherited from org.apache.jmeter.testelement.AbstractTestElement
protected void addProperty(JMeterProperty property)(Code)(Java Doc)
public void addTestElement(TestElement el)(Code)(Java Doc)
public boolean canRemove()(Code)(Java Doc)
public void clear()(Code)(Java Doc)
protected void clearTemporary(JMeterProperty property)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected void emptyTemporary()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public String getComment()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public JMeterProperty getProperty(String key)(Code)(Java Doc)
public boolean getPropertyAsBoolean(String key)(Code)(Java Doc)
public boolean getPropertyAsBoolean(String key, boolean defaultVal)(Code)(Java Doc)
public double getPropertyAsDouble(String key)(Code)(Java Doc)
public float getPropertyAsFloat(String key)(Code)(Java Doc)
public int getPropertyAsInt(String key)(Code)(Java Doc)
public long getPropertyAsLong(String key)(Code)(Java Doc)
public String getPropertyAsString(String key)(Code)(Java Doc)
public String getPropertyAsString(String key, String defaultValue)(Code)(Java Doc)
public JMeterContext getThreadContext()(Code)(Java Doc)
public String getThreadName()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isRunningVersion()(Code)(Java Doc)
public boolean isTemporary(JMeterProperty property)(Code)(Java Doc)
protected void logProperties()(Code)(Java Doc)
protected void mergeIn(TestElement element)(Code)(Java Doc)
protected Sampler nextIsNull() throws NextIsNullException(Code)(Java Doc)
public PropertyIterator propertyIterator()(Code)(Java Doc)
public void recoverRunningVersion()(Code)(Java Doc)
public void removeProperty(String key)(Code)(Java Doc)
public void setComment(String comment)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setProperty(JMeterProperty property)(Code)(Java Doc)
public void setProperty(String name, String value)(Code)(Java Doc)
public void setProperty(String name, boolean value)(Code)(Java Doc)
public void setRunningVersion(boolean runningVersion)(Code)(Java Doc)
public void setTemporary(JMeterProperty property)(Code)(Java Doc)
public void setThreadContext(JMeterContext inthreadContext)(Code)(Java Doc)
public void setThreadName(String inthreadName)(Code)(Java Doc)
public void traverse(TestElementTraverser traverser)(Code)(Java Doc)
protected void traverseCollection(CollectionProperty col, TestElementTraverser traverser)(Code)(Java Doc)
protected void traverseMap(MapProperty map, TestElementTraverser traverser)(Code)(Java Doc)
protected void traverseProperty(TestElementTraverser traverser, JMeterProperty value)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.