Java Doc for ThreadPoolRunnableUnitTestCase.java in  » EJB-Server-JBoss-4.2.1 » testsuite » org » jboss » test » util » test » 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 » EJB Server JBoss 4.2.1 » testsuite » org.jboss.test.util.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.test.util.test.ThreadPoolRunnableUnitTestCase

ThreadPoolRunnableUnitTestCase
public class ThreadPoolRunnableUnitTestCase extends TestCase (Code)
Tests of thread pool with Runnables added to the pool
See Also:   org.jboss.util.threadpool.ThreadPool
author:
   Adrian.Brock
author:
   Scott.Stark@jboss.org
version:
   $Revision: 61634 $

Inner Class :public class TestRunnable implements Runnable

Field Summary
final static  intBASIC
    
final static  intHOLD_START
    
 HashSetfinishedRunnables
    
 HashSetstartedReleases
    
 HashSetstartedRunnables
    
 HashMapthreadNames
    

Constructor Summary
public  ThreadPoolRunnableUnitTestCase(String name)
    

Method Summary
public synchronized  voidclearFinished()
    
public synchronized  voidclearStarted()
    
public  HashSetmakeExpected(Object[] expected)
    
public synchronized  voidnotifyFinished(String data)
    
public synchronized  voidnotifyStarted(String data)
    
public synchronized  voidreleaseStarted(String data)
    
public synchronized  voidsaveRunnableThreadName(String data, String name)
    
public  voidtestBasic()
    
public  voidtestMaximumPool()
    
public  voidtestMaximumQueue()
    
public  voidtestMultipleBasic()
    
public  voidtestMultiplePooling()
    
public  voidtestRunnableTimeout()
    
public  voidtestRunnableTimeoutWithSpinLoop()
    
public  voidtestRunnableTimeoutWithSpinLoop2()
    
public  voidtestSimplePooling()
    
public synchronized  voidwaitFinished(int target)
    
public synchronized  voidwaitForReleaseStarted(String data)
    
public synchronized  voidwaitStarted(int target)
    

Field Detail
BASIC
final static int BASIC(Code)
Basic test



HOLD_START
final static int HOLD_START(Code)
Hold the thread after start



finishedRunnables
HashSet finishedRunnables(Code)
The finished runnables



startedReleases
HashSet startedReleases(Code)
The started releases



startedRunnables
HashSet startedRunnables(Code)
The started runnables



threadNames
HashMap threadNames(Code)
The thread names




Constructor Detail
ThreadPoolRunnableUnitTestCase
public ThreadPoolRunnableUnitTestCase(String name)(Code)
Create a new ThreadPoolRunnableUnitTestCase
Parameters:
  name - the test to run




Method Detail
clearFinished
public synchronized void clearFinished()(Code)
Clear finished



clearStarted
public synchronized void clearStarted()(Code)
Clear started



makeExpected
public HashSet makeExpected(Object[] expected)(Code)
Make the expected result
Parameters:
  expected - the results as an object array the expected result



notifyFinished
public synchronized void notifyFinished(String data)(Code)
Notify finished



notifyStarted
public synchronized void notifyStarted(String data)(Code)
Notify started



releaseStarted
public synchronized void releaseStarted(String data)(Code)
Release in waiting for start
Parameters:
  data - the thread to start



saveRunnableThreadName
public synchronized void saveRunnableThreadName(String data, String name)(Code)
Save the thread name
Parameters:
  data - the test data
Parameters:
  name - the thread name



testBasic
public void testBasic() throws Exception(Code)
Basic test



testMaximumPool
public void testMaximumPool() throws Exception(Code)
Test maximum pool



testMaximumQueue
public void testMaximumQueue() throws Exception(Code)
Test maximum cache



testMultipleBasic
public void testMultipleBasic() throws Exception(Code)
Multiple Basic test



testMultiplePooling
public void testMultiplePooling() throws Exception(Code)
Test multiple pooling



testRunnableTimeout
public void testRunnableTimeout() throws Exception(Code)
Test runnable timeouts



testRunnableTimeoutWithSpinLoop
public void testRunnableTimeoutWithSpinLoop() throws Exception(Code)
Test runnable timeouts



testRunnableTimeoutWithSpinLoop2
public void testRunnableTimeoutWithSpinLoop2() throws Exception(Code)
Test runnable timeouts



testSimplePooling
public void testSimplePooling() throws Exception(Code)
Test pooling



waitFinished
public synchronized void waitFinished(int target) throws InterruptedException(Code)
Wait for expected finishes



waitForReleaseStarted
public synchronized void waitForReleaseStarted(String data)(Code)
Wait for release started



waitStarted
public synchronized void waitStarted(int target) throws InterruptedException(Code)
Wait for expected starts



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