Java Doc for TestGetObject.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » stress » 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 » Database ORM » Speedo_1.4.5 » org.objectweb.speedo.stress 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.speedo.stress.StressHelper
   org.objectweb.speedo.stress.LinkedIntUserIdHelper
      org.objectweb.speedo.stress.TestGetObject

TestGetObject
public class TestGetObject extends LinkedIntUserIdHelper (Code)
Stresses the read access function of Speedo.
author:
   M. Guillemin/S.Rodiere

Inner Class :public class GetCtx extends LIUICtx


Constructor Summary
public  TestGetObject(String s)
    

Method Summary
protected  StringgetLoggerName()
    
protected  voidlogStatistic(TaskManager tm, long exectime, Object _ctx)
    
protected  voidperform(Task task, int threadId, int txId, Object ctx, PerformResult res)
    
public  voidtestGetObjectTh1000Tx100Re100Rp100()
     Tests 1000 transactions where each of them read 100 object with 100 read using 1 thread.
public  voidtestGetObjectTh100Tx100Re100Rp100()
     Tests 10000 transactions where each of them read 100 object with 100 read using 100 thread.
public  voidtestGetObjectTh10Tx1000Re10Rp100()
     Tests 1000 transactions where each of them read 100 object with 100 read using 10 thread.
public  voidtestGetObjectTh10Tx100Re100Rp100()
     Tests 10000 transactions where each of them read 100 object with 100 read using 10 thread.
public  voidtestGetObjectTh10Tx100Re1Rp10()
     Tests 100 transactions where each of them read 1 object with 10 read using 10 thread.
public  voidtestGetObjectTh1Tx1000Re10Rp100()
     Tests 1000 transactions where each of them read 100 object with 100 read using 1 thread.
public  voidtestGetObjectTh1Tx100Re100Rp100()
     Tests 10000 transactions where each of them read 100 object with 100 read using 1 thread.
public  voidtestGetObjectTh1Tx100Re100Rp10000()
     Tests 10000 transactions where each of them read 100 object with 10000 read using 1 thread.
public  voidtestGetObjectTh1Tx100Re1Rp1()
     Tests 100 transactions where each of them read 1 object with 1 read using 1 thread.
public  voidtestGetObjectTh1Tx100Re1Rp10()
     Tests 100 transactions where each of them read 1 object with 10 read using 1 thread.
public  voidtestGetObjectTh2Tx1000Re10Rp100()
     Tests 1000 transactions where each of them read 100 object with 100 read using 2 thread.
public  voidtestGetObjectTh2Tx100Re100Rp100()
     Tests 10000 transactions where each of them read 100 object with 100 read using 2 thread.
public  voidtestGetObjectTh2Tx100Re1Rp1()
     Tests 100 transactions where each of them read 1 object with 1 read using 2 thread.
public  voidtestGetObjectTh2Tx100Re1Rp10()
     Tests 100 transactions where each of them read 1 object with 10 read using 2 thread.
public  voidtestGetObjectTh3Tx100Re100Rp100()
     Tests 10000 transactions where each of them read 100 object with 100 read using 3 thread.
public  voidtestGetObjectTh3Tx100Re100Rp10000()
     Tests 10000 transactions where each of them read 100 object with 10000 read using 3 thread.
public  voidtestInteractive()
     Tests the read of a lot of persistent objects, with interactive setting of test parameteres (see file userconf/project.properties).


Constructor Detail
TestGetObject
public TestGetObject(String s)(Code)




Method Detail
getLoggerName
protected String getLoggerName()(Code)



logStatistic
protected void logStatistic(TaskManager tm, long exectime, Object _ctx)(Code)



perform
protected void perform(Task task, int threadId, int txId, Object ctx, PerformResult res)(Code)



testGetObjectTh1000Tx100Re100Rp100
public void testGetObjectTh1000Tx100Re100Rp100()(Code)
Tests 1000 transactions where each of them read 100 object with 100 read using 1 thread.



testGetObjectTh100Tx100Re100Rp100
public void testGetObjectTh100Tx100Re100Rp100()(Code)
Tests 10000 transactions where each of them read 100 object with 100 read using 100 thread.



testGetObjectTh10Tx1000Re10Rp100
public void testGetObjectTh10Tx1000Re10Rp100()(Code)
Tests 1000 transactions where each of them read 100 object with 100 read using 10 thread.



testGetObjectTh10Tx100Re100Rp100
public void testGetObjectTh10Tx100Re100Rp100()(Code)
Tests 10000 transactions where each of them read 100 object with 100 read using 10 thread.



testGetObjectTh10Tx100Re1Rp10
public void testGetObjectTh10Tx100Re1Rp10()(Code)
Tests 100 transactions where each of them read 1 object with 10 read using 10 thread.



testGetObjectTh1Tx1000Re10Rp100
public void testGetObjectTh1Tx1000Re10Rp100()(Code)
Tests 1000 transactions where each of them read 100 object with 100 read using 1 thread.



testGetObjectTh1Tx100Re100Rp100
public void testGetObjectTh1Tx100Re100Rp100()(Code)
Tests 10000 transactions where each of them read 100 object with 100 read using 1 thread.



testGetObjectTh1Tx100Re100Rp10000
public void testGetObjectTh1Tx100Re100Rp10000()(Code)
Tests 10000 transactions where each of them read 100 object with 10000 read using 1 thread.



testGetObjectTh1Tx100Re1Rp1
public void testGetObjectTh1Tx100Re1Rp1()(Code)
Tests 100 transactions where each of them read 1 object with 1 read using 1 thread.



testGetObjectTh1Tx100Re1Rp10
public void testGetObjectTh1Tx100Re1Rp10()(Code)
Tests 100 transactions where each of them read 1 object with 10 read using 1 thread.



testGetObjectTh2Tx1000Re10Rp100
public void testGetObjectTh2Tx1000Re10Rp100()(Code)
Tests 1000 transactions where each of them read 100 object with 100 read using 2 thread.



testGetObjectTh2Tx100Re100Rp100
public void testGetObjectTh2Tx100Re100Rp100()(Code)
Tests 10000 transactions where each of them read 100 object with 100 read using 2 thread.



testGetObjectTh2Tx100Re1Rp1
public void testGetObjectTh2Tx100Re1Rp1()(Code)
Tests 100 transactions where each of them read 1 object with 1 read using 2 thread.



testGetObjectTh2Tx100Re1Rp10
public void testGetObjectTh2Tx100Re1Rp10()(Code)
Tests 100 transactions where each of them read 1 object with 10 read using 2 thread.



testGetObjectTh3Tx100Re100Rp100
public void testGetObjectTh3Tx100Re100Rp100()(Code)
Tests 10000 transactions where each of them read 100 object with 100 read using 3 thread.



testGetObjectTh3Tx100Re100Rp10000
public void testGetObjectTh3Tx100Re100Rp10000()(Code)
Tests 10000 transactions where each of them read 100 object with 10000 read using 3 thread.



testInteractive
public void testInteractive()(Code)
Tests the read of a lot of persistent objects, with interactive setting of test parameteres (see file userconf/project.properties).



Fields inherited from org.objectweb.speedo.stress.LinkedIntUserIdHelper
protected String DBSIZE(Code)(Java Doc)
protected String NO_DB_INIT(Code)(Java Doc)
protected static Object[] oids(Code)(Java Doc)

Methods inherited from org.objectweb.speedo.stress.LinkedIntUserIdHelper
protected String[] getClassNamesToInit()(Code)(Java Doc)
protected boolean keepOid()(Code)(Java Doc)
protected boolean linkObject()(Code)(Java Doc)
protected void prepareTask(Task task, Object _ctx)(Code)(Java Doc)
public void setUp() throws Exception(Code)(Java Doc)

Fields inherited from org.objectweb.speedo.stress.StressHelper
final protected static int ID_Th1(Code)(Java Doc)
final protected static int ID_Th10(Code)(Java Doc)
final protected static int ID_Th10Tx100000Cr1(Code)(Java Doc)
final protected static int ID_Th10Tx100000Cr10(Code)(Java Doc)
final protected static int ID_Th10Tx10000Cr1(Code)(Java Doc)
final protected static int ID_Th10Tx10000Cr10(Code)(Java Doc)
final protected static int ID_Th10Tx10000Cr100(Code)(Java Doc)
final protected static int ID_Th10Tx1000Cr1(Code)(Java Doc)
final protected static int ID_Th10Tx1000Cr10(Code)(Java Doc)
final protected static int ID_Th10Tx1000Cr100(Code)(Java Doc)
final protected static int ID_Th10Tx1000Cr1000(Code)(Java Doc)
final protected static int ID_Th10Tx1000Cr2000(Code)(Java Doc)
final protected static int ID_Th10Tx1000Cr500(Code)(Java Doc)
final protected static int ID_Th10Tx100Cr1(Code)(Java Doc)
final protected static int ID_Th10Tx100Cr10(Code)(Java Doc)
final protected static int ID_Th10Tx100Cr100(Code)(Java Doc)
final protected static int ID_Th10Tx100Cr1000(Code)(Java Doc)
final protected static int ID_Th10Tx100Cr10000(Code)(Java Doc)
final protected static int ID_Th10Tx100Cr2000(Code)(Java Doc)
final protected static int ID_Th10Tx100Cr500(Code)(Java Doc)
final protected static int ID_Th10Tx10Cr1(Code)(Java Doc)
final protected static int ID_Th10Tx10Cr10(Code)(Java Doc)
final protected static int ID_Th10Tx10Cr100(Code)(Java Doc)
final protected static int ID_Th10Tx10Cr1000(Code)(Java Doc)
final protected static int ID_Th10Tx10Cr10000(Code)(Java Doc)
final protected static int ID_Th10Tx10Cr2000(Code)(Java Doc)
final protected static int ID_Th10Tx10Cr500(Code)(Java Doc)
final protected static int ID_Th1Tx100000Cr1(Code)(Java Doc)
final protected static int ID_Th1Tx100000Cr10(Code)(Java Doc)
final protected static int ID_Th1Tx10000Cr1(Code)(Java Doc)
final protected static int ID_Th1Tx10000Cr10(Code)(Java Doc)
final protected static int ID_Th1Tx10000Cr100(Code)(Java Doc)
final protected static int ID_Th1Tx1000Cr1(Code)(Java Doc)
final protected static int ID_Th1Tx1000Cr10(Code)(Java Doc)
final protected static int ID_Th1Tx1000Cr100(Code)(Java Doc)
final protected static int ID_Th1Tx1000Cr1000(Code)(Java Doc)
final protected static int ID_Th1Tx1000Cr2000(Code)(Java Doc)
final protected static int ID_Th1Tx1000Cr500(Code)(Java Doc)
final protected static int ID_Th1Tx100Cr1(Code)(Java Doc)
final protected static int ID_Th1Tx100Cr10(Code)(Java Doc)
final protected static int ID_Th1Tx100Cr100(Code)(Java Doc)
final protected static int ID_Th1Tx100Cr1000(Code)(Java Doc)
final protected static int ID_Th1Tx100Cr10000(Code)(Java Doc)
final protected static int ID_Th1Tx100Cr2000(Code)(Java Doc)
final protected static int ID_Th1Tx100Cr500(Code)(Java Doc)
final protected static int ID_Th1Tx10Cr1(Code)(Java Doc)
final protected static int ID_Th1Tx10Cr10(Code)(Java Doc)
final protected static int ID_Th1Tx10Cr100(Code)(Java Doc)
final protected static int ID_Th1Tx10Cr1000(Code)(Java Doc)
final protected static int ID_Th1Tx10Cr10000(Code)(Java Doc)
final protected static int ID_Th1Tx10Cr2000(Code)(Java Doc)
final protected static int ID_Th1Tx10Cr500(Code)(Java Doc)
final protected static int ID_Th2(Code)(Java Doc)
final protected static int ID_Th2Tx100000Cr1(Code)(Java Doc)
final protected static int ID_Th2Tx100000Cr10(Code)(Java Doc)
final protected static int ID_Th2Tx10000Cr1(Code)(Java Doc)
final protected static int ID_Th2Tx10000Cr10(Code)(Java Doc)
final protected static int ID_Th2Tx10000Cr100(Code)(Java Doc)
final protected static int ID_Th2Tx1000Cr1(Code)(Java Doc)
final protected static int ID_Th2Tx1000Cr10(Code)(Java Doc)
final protected static int ID_Th2Tx1000Cr100(Code)(Java Doc)
final protected static int ID_Th2Tx1000Cr1000(Code)(Java Doc)
final protected static int ID_Th2Tx1000Cr2000(Code)(Java Doc)
final protected static int ID_Th2Tx1000Cr500(Code)(Java Doc)
final protected static int ID_Th2Tx100Cr1(Code)(Java Doc)
final protected static int ID_Th2Tx100Cr10(Code)(Java Doc)
final protected static int ID_Th2Tx100Cr100(Code)(Java Doc)
final protected static int ID_Th2Tx100Cr1000(Code)(Java Doc)
final protected static int ID_Th2Tx100Cr10000(Code)(Java Doc)
final protected static int ID_Th2Tx100Cr2000(Code)(Java Doc)
final protected static int ID_Th2Tx100Cr500(Code)(Java Doc)
final protected static int ID_Th2Tx10Cr1(Code)(Java Doc)
final protected static int ID_Th2Tx10Cr10(Code)(Java Doc)
final protected static int ID_Th2Tx10Cr100(Code)(Java Doc)
final protected static int ID_Th2Tx10Cr1000(Code)(Java Doc)
final protected static int ID_Th2Tx10Cr10000(Code)(Java Doc)
final protected static int ID_Th2Tx10Cr2000(Code)(Java Doc)
final protected static int ID_Th2Tx10Cr500(Code)(Java Doc)
final protected static int ID_Th3(Code)(Java Doc)
final protected static int ID_Th3Tx100000Cr1(Code)(Java Doc)
final protected static int ID_Th3Tx100000Cr10(Code)(Java Doc)
final protected static int ID_Th3Tx10000Cr1(Code)(Java Doc)
final protected static int ID_Th3Tx10000Cr10(Code)(Java Doc)
final protected static int ID_Th3Tx10000Cr100(Code)(Java Doc)
final protected static int ID_Th3Tx1000Cr1(Code)(Java Doc)
final protected static int ID_Th3Tx1000Cr10(Code)(Java Doc)
final protected static int ID_Th3Tx1000Cr100(Code)(Java Doc)
final protected static int ID_Th3Tx1000Cr1000(Code)(Java Doc)
final protected static int ID_Th3Tx1000Cr2000(Code)(Java Doc)
final protected static int ID_Th3Tx1000Cr500(Code)(Java Doc)
final protected static int ID_Th3Tx100Cr1(Code)(Java Doc)
final protected static int ID_Th3Tx100Cr10(Code)(Java Doc)
final protected static int ID_Th3Tx100Cr100(Code)(Java Doc)
final protected static int ID_Th3Tx100Cr1000(Code)(Java Doc)
final protected static int ID_Th3Tx100Cr10000(Code)(Java Doc)
final protected static int ID_Th3Tx100Cr2000(Code)(Java Doc)
final protected static int ID_Th3Tx100Cr500(Code)(Java Doc)
final protected static int ID_Th3Tx10Cr1(Code)(Java Doc)
final protected static int ID_Th3Tx10Cr10(Code)(Java Doc)
final protected static int ID_Th3Tx10Cr100(Code)(Java Doc)
final protected static int ID_Th3Tx10Cr1000(Code)(Java Doc)
final protected static int ID_Th3Tx10Cr10000(Code)(Java Doc)
final protected static int ID_Th3Tx10Cr2000(Code)(Java Doc)
final protected static int ID_Th3Tx10Cr500(Code)(Java Doc)
final protected static int ID_Th4(Code)(Java Doc)
final protected static int ID_Th4Tx100000Cr1(Code)(Java Doc)
final protected static int ID_Th4Tx100000Cr10(Code)(Java Doc)
final protected static int ID_Th4Tx10000Cr1(Code)(Java Doc)
final protected static int ID_Th4Tx10000Cr10(Code)(Java Doc)
final protected static int ID_Th4Tx10000Cr100(Code)(Java Doc)
final protected static int ID_Th4Tx1000Cr1(Code)(Java Doc)
final protected static int ID_Th4Tx1000Cr10(Code)(Java Doc)
final protected static int ID_Th4Tx1000Cr100(Code)(Java Doc)
final protected static int ID_Th4Tx1000Cr1000(Code)(Java Doc)
final protected static int ID_Th4Tx1000Cr2000(Code)(Java Doc)
final protected static int ID_Th4Tx1000Cr500(Code)(Java Doc)
final protected static int ID_Th4Tx100Cr1(Code)(Java Doc)
final protected static int ID_Th4Tx100Cr10(Code)(Java Doc)
final protected static int ID_Th4Tx100Cr100(Code)(Java Doc)
final protected static int ID_Th4Tx100Cr1000(Code)(Java Doc)
final protected static int ID_Th4Tx100Cr10000(Code)(Java Doc)
final protected static int ID_Th4Tx100Cr2000(Code)(Java Doc)
final protected static int ID_Th4Tx100Cr500(Code)(Java Doc)
final protected static int ID_Th4Tx10Cr1(Code)(Java Doc)
final protected static int ID_Th4Tx10Cr10(Code)(Java Doc)
final protected static int ID_Th4Tx10Cr100(Code)(Java Doc)
final protected static int ID_Th4Tx10Cr1000(Code)(Java Doc)
final protected static int ID_Th4Tx10Cr10000(Code)(Java Doc)
final protected static int ID_Th4Tx10Cr2000(Code)(Java Doc)
final protected static int ID_Th4Tx10Cr500(Code)(Java Doc)
protected String INTERACTIVE(Code)(Java Doc)
protected String NBPRINT(Code)(Java Doc)
final public static String STRESS_LOG_NAME(Code)(Java Doc)
final protected static int[] TESTNBC(Code)(Java Doc)
protected String THREAD(Code)(Java Doc)
protected String TIMEOUT(Code)(Java Doc)
protected String TX(Code)(Java Doc)
protected static CacheAttributeController cac(Code)(Java Doc)
protected boolean debug(Code)(Java Doc)
public static Vector errors(Code)(Java Doc)
protected boolean hasRan(Code)(Java Doc)
protected boolean interactive(Code)(Java Doc)
protected static int nbPrint(Code)(Java Doc)
protected static int nbTest(Code)(Java Doc)
public static Vector rollbackExceptions(Code)(Java Doc)

Methods inherited from org.objectweb.speedo.stress.StressHelper
protected void beginTx(PersistenceManager pm, Task task, int threadId, int txId)(Code)(Java Doc)
protected void cleanup()(Code)(Java Doc)
protected void closePM(PersistenceManager pm, int threadId, int txId, Task task, PerformResult res)(Code)(Java Doc)
protected void commitTx(PersistenceManager pm, Task task, int threadId, int txId)(Code)(Java Doc)
protected void displayMemory()(Code)(Java Doc)
abstract protected String[] getClassNamesToInit()(Code)(Java Doc)
protected String getLogPrefix()(Code)(Java Doc)
protected PersistenceManager getPM(Task task, int threadId, int txId)(Code)(Java Doc)
public Properties getPMFProperties()(Code)(Java Doc)
protected int getStartId(int testid)(Code)(Java Doc)
protected void initDataStructure(boolean clean) throws Exception(Code)(Java Doc)
protected void logStatistic(TaskManager tm, long exectime, Object ctx)(Code)(Java Doc)
protected TaskManager newTaskManager(int nbTx, int nbThread, int timeout, Object ctx)(Code)(Java Doc)
protected TaskManager newTaskManager(int nbTx, int nbThread, int timeout, Object ctx)(Code)(Java Doc)
protected void perform(int nbThread, int nbTx, int threadTimeout, Object ctx)(Code)(Java Doc)
protected void perform(int nbThread, int nbTx, int timeout, Object ctx)(Code)(Java Doc)
abstract protected void perform(Task task, int threadId, int txId, Object ctx, PerformResult res)(Code)(Java Doc)
protected void prepareTask(Task task, Object ctx)(Code)(Java Doc)
protected void prepareTest(TaskManager tm, Object ctx)(Code)(Java Doc)
protected void rollbackOnException(PersistenceManager pm, Exception e, PerformResult res, Task task, int threadId, int txId)(Code)(Java Doc)
public void setUp() throws Exception(Code)(Java Doc)
protected void stopOnError(PersistenceManager pm, Throwable t, PerformResult res, Task task, int threadId, int txId)(Code)(Java Doc)
public void tearDown()(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.