Java Doc for StressHelper.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.SpeedoTestHelper
   org.objectweb.speedo.stress.StressHelper

All known Subclasses:   org.objectweb.speedo.stress.IntUserIdHelper,  org.objectweb.speedo.stress.AllCollectionHelper,  org.objectweb.speedo.stress.TestCreDel,  org.objectweb.speedo.stress.QueryHelper,  org.objectweb.speedo.stress.TestRelationN_M,  org.objectweb.speedo.stress.TestCreation,  org.objectweb.speedo.stress.LinkedIntUserIdHelper,  org.objectweb.speedo.stress.CDRelationHelper,  org.objectweb.speedo.stress.TestRelation1_N,  org.objectweb.speedo.stress.TestRelation1_1,  org.objectweb.speedo.stress.TestCollection,
StressHelper
abstract public class StressHelper extends SpeedoTestHelper (Code)

author:
   S.Chassande-Barrioz

Inner Class :public class TaskManager
Inner Class :public class Task
Inner Class :public class ThreadId
Inner Class :class PerformResult
Inner Class :public class ObjectStatistic

Field Summary
final protected static  intID_Th1
    
final protected static  intID_Th10
    
final protected static  intID_Th10Tx100000Cr1
    
final protected static  intID_Th10Tx100000Cr10
    
final protected static  intID_Th10Tx10000Cr1
    
final protected static  intID_Th10Tx10000Cr10
    
final protected static  intID_Th10Tx10000Cr100
    
final protected static  intID_Th10Tx1000Cr1
    
final protected static  intID_Th10Tx1000Cr10
    
final protected static  intID_Th10Tx1000Cr100
    
final protected static  intID_Th10Tx1000Cr1000
    
final protected static  intID_Th10Tx1000Cr2000
    
final protected static  intID_Th10Tx1000Cr500
    
final protected static  intID_Th10Tx100Cr1
    
final protected static  intID_Th10Tx100Cr10
    
final protected static  intID_Th10Tx100Cr100
    
final protected static  intID_Th10Tx100Cr1000
    
final protected static  intID_Th10Tx100Cr10000
    
final protected static  intID_Th10Tx100Cr2000
    
final protected static  intID_Th10Tx100Cr500
    
final protected static  intID_Th10Tx10Cr1
    
final protected static  intID_Th10Tx10Cr10
    
final protected static  intID_Th10Tx10Cr100
    
final protected static  intID_Th10Tx10Cr1000
    
final protected static  intID_Th10Tx10Cr10000
    
final protected static  intID_Th10Tx10Cr2000
    
final protected static  intID_Th10Tx10Cr500
    
final protected static  intID_Th1Tx100000Cr1
    
final protected static  intID_Th1Tx100000Cr10
    
final protected static  intID_Th1Tx10000Cr1
    
final protected static  intID_Th1Tx10000Cr10
    
final protected static  intID_Th1Tx10000Cr100
    
final protected static  intID_Th1Tx1000Cr1
    
final protected static  intID_Th1Tx1000Cr10
    
final protected static  intID_Th1Tx1000Cr100
    
final protected static  intID_Th1Tx1000Cr1000
    
final protected static  intID_Th1Tx1000Cr2000
    
final protected static  intID_Th1Tx1000Cr500
    
final protected static  intID_Th1Tx100Cr1
    
final protected static  intID_Th1Tx100Cr10
    
final protected static  intID_Th1Tx100Cr100
    
final protected static  intID_Th1Tx100Cr1000
    
final protected static  intID_Th1Tx100Cr10000
    
final protected static  intID_Th1Tx100Cr2000
    
final protected static  intID_Th1Tx100Cr500
    
final protected static  intID_Th1Tx10Cr1
    
final protected static  intID_Th1Tx10Cr10
    
final protected static  intID_Th1Tx10Cr100
    
final protected static  intID_Th1Tx10Cr1000
    
final protected static  intID_Th1Tx10Cr10000
    
final protected static  intID_Th1Tx10Cr2000
    
final protected static  intID_Th1Tx10Cr500
    
final protected static  intID_Th2
    
final protected static  intID_Th2Tx100000Cr1
    
final protected static  intID_Th2Tx100000Cr10
    
final protected static  intID_Th2Tx10000Cr1
    
final protected static  intID_Th2Tx10000Cr10
    
final protected static  intID_Th2Tx10000Cr100
    
final protected static  intID_Th2Tx1000Cr1
    
final protected static  intID_Th2Tx1000Cr10
    
final protected static  intID_Th2Tx1000Cr100
    
final protected static  intID_Th2Tx1000Cr1000
    
final protected static  intID_Th2Tx1000Cr2000
    
final protected static  intID_Th2Tx1000Cr500
    
final protected static  intID_Th2Tx100Cr1
    
final protected static  intID_Th2Tx100Cr10
    
final protected static  intID_Th2Tx100Cr100
    
final protected static  intID_Th2Tx100Cr1000
    
final protected static  intID_Th2Tx100Cr10000
    
final protected static  intID_Th2Tx100Cr2000
    
final protected static  intID_Th2Tx100Cr500
    
final protected static  intID_Th2Tx10Cr1
    
final protected static  intID_Th2Tx10Cr10
    
final protected static  intID_Th2Tx10Cr100
    
final protected static  intID_Th2Tx10Cr1000
    
final protected static  intID_Th2Tx10Cr10000
    
final protected static  intID_Th2Tx10Cr2000
    
final protected static  intID_Th2Tx10Cr500
    
final protected static  intID_Th3
    
final protected static  intID_Th3Tx100000Cr1
    
final protected static  intID_Th3Tx100000Cr10
    
final protected static  intID_Th3Tx10000Cr1
    
final protected static  intID_Th3Tx10000Cr10
    
final protected static  intID_Th3Tx10000Cr100
    
final protected static  intID_Th3Tx1000Cr1
    
final protected static  intID_Th3Tx1000Cr10
    
final protected static  intID_Th3Tx1000Cr100
    
final protected static  intID_Th3Tx1000Cr1000
    
final protected static  intID_Th3Tx1000Cr2000
    
final protected static  intID_Th3Tx1000Cr500
    
final protected static  intID_Th3Tx100Cr1
    
final protected static  intID_Th3Tx100Cr10
    
final protected static  intID_Th3Tx100Cr100
    
final protected static  intID_Th3Tx100Cr1000
    
final protected static  intID_Th3Tx100Cr10000
    
final protected static  intID_Th3Tx100Cr2000
    
final protected static  intID_Th3Tx100Cr500
    
final protected static  intID_Th3Tx10Cr1
    
final protected static  intID_Th3Tx10Cr10
    
final protected static  intID_Th3Tx10Cr100
    
final protected static  intID_Th3Tx10Cr1000
    
final protected static  intID_Th3Tx10Cr10000
    
final protected static  intID_Th3Tx10Cr2000
    
final protected static  intID_Th3Tx10Cr500
    
final protected static  intID_Th4
    
final protected static  intID_Th4Tx100000Cr1
    
final protected static  intID_Th4Tx100000Cr10
    
final protected static  intID_Th4Tx10000Cr1
    
final protected static  intID_Th4Tx10000Cr10
    
final protected static  intID_Th4Tx10000Cr100
    
final protected static  intID_Th4Tx1000Cr1
    
final protected static  intID_Th4Tx1000Cr10
    
final protected static  intID_Th4Tx1000Cr100
    
final protected static  intID_Th4Tx1000Cr1000
    
final protected static  intID_Th4Tx1000Cr2000
    
final protected static  intID_Th4Tx1000Cr500
    
final protected static  intID_Th4Tx100Cr1
    
final protected static  intID_Th4Tx100Cr10
    
final protected static  intID_Th4Tx100Cr100
    
final protected static  intID_Th4Tx100Cr1000
    
final protected static  intID_Th4Tx100Cr10000
    
final protected static  intID_Th4Tx100Cr2000
    
final protected static  intID_Th4Tx100Cr500
    
final protected static  intID_Th4Tx10Cr1
    
final protected static  intID_Th4Tx10Cr10
    
final protected static  intID_Th4Tx10Cr100
    
final protected static  intID_Th4Tx10Cr1000
    
final protected static  intID_Th4Tx10Cr10000
    
final protected static  intID_Th4Tx10Cr2000
    
final protected static  intID_Th4Tx10Cr500
    
protected  StringINTERACTIVE
    
protected  StringNBPRINT
    
final public static  StringSTRESS_LOG_NAME
    
final protected static  int[]TESTNBC
    
protected  StringTHREAD
    
protected  StringTIMEOUT
    
protected  StringTX
    
protected static  CacheAttributeControllercac
    
protected  booleandebug
    
public static  Vectorerrors
    
protected  booleanhasRan
    
protected  booleaninteractive
    
protected static  intnbPrint
    
protected static  intnbTest
    
public static  VectorrollbackExceptions
    

Constructor Summary
public  StressHelper(String s)
    

Method Summary
protected  voidbeginTx(PersistenceManager pm, Task task, int threadId, int txId)
    
protected  voidcleanup()
    
protected  voidclosePM(PersistenceManager pm, int threadId, int txId, Task task, PerformResult res)
    
protected  voidcommitTx(PersistenceManager pm, Task task, int threadId, int txId)
    
protected  voiddisplayMemory()
    
abstract protected  String[]getClassNamesToInit()
    
protected  StringgetLogPrefix()
    
protected  PersistenceManagergetPM(Task task, int threadId, int txId)
    
public  PropertiesgetPMFProperties()
    
protected  intgetStartId(int testid)
    
protected  voidinitDataStructure(boolean clean)
    
protected  voidlogStatistic(TaskManager tm, long exectime, Object ctx)
    
protected  TaskManagernewTaskManager(int nbTx, int nbThread, int timeout, Object ctx)
    
protected  TaskManagernewTaskManager(int nbTx, int nbThread, int timeout, Object ctx)
    
protected  voidperform(int nbThread, int nbTx, int threadTimeout, Object ctx)
    
protected  voidperform(int nbThread, int nbTx, int timeout, Object ctx)
    
abstract protected  voidperform(Task task, int threadId, int txId, Object ctx, PerformResult res)
     executes a transaction
Parameters:
  task - task asking the transaction execution
Parameters:
  threadId - thread identifier running the transaction
Parameters:
  txId - transaction identifier
Parameters:
  ctx - context of the test
Parameters:
  res - result of the transaction execution.
protected  voidprepareTask(Task task, Object ctx)
    
protected  voidprepareTest(TaskManager tm, Object ctx)
    
protected  voidrollbackOnException(PersistenceManager pm, Exception e, PerformResult res, Task task, int threadId, int txId)
    
public  voidsetUp()
    
protected  voidstopOnError(PersistenceManager pm, Throwable t, PerformResult res, Task task, int threadId, int txId)
     Stop the transactions execution due to an error.
public  voidtearDown()
    

Field Detail
ID_Th1
final protected static int ID_Th1(Code)



ID_Th10
final protected static int ID_Th10(Code)



ID_Th10Tx100000Cr1
final protected static int ID_Th10Tx100000Cr1(Code)



ID_Th10Tx100000Cr10
final protected static int ID_Th10Tx100000Cr10(Code)



ID_Th10Tx10000Cr1
final protected static int ID_Th10Tx10000Cr1(Code)



ID_Th10Tx10000Cr10
final protected static int ID_Th10Tx10000Cr10(Code)



ID_Th10Tx10000Cr100
final protected static int ID_Th10Tx10000Cr100(Code)



ID_Th10Tx1000Cr1
final protected static int ID_Th10Tx1000Cr1(Code)



ID_Th10Tx1000Cr10
final protected static int ID_Th10Tx1000Cr10(Code)



ID_Th10Tx1000Cr100
final protected static int ID_Th10Tx1000Cr100(Code)



ID_Th10Tx1000Cr1000
final protected static int ID_Th10Tx1000Cr1000(Code)



ID_Th10Tx1000Cr2000
final protected static int ID_Th10Tx1000Cr2000(Code)



ID_Th10Tx1000Cr500
final protected static int ID_Th10Tx1000Cr500(Code)



ID_Th10Tx100Cr1
final protected static int ID_Th10Tx100Cr1(Code)



ID_Th10Tx100Cr10
final protected static int ID_Th10Tx100Cr10(Code)



ID_Th10Tx100Cr100
final protected static int ID_Th10Tx100Cr100(Code)



ID_Th10Tx100Cr1000
final protected static int ID_Th10Tx100Cr1000(Code)



ID_Th10Tx100Cr10000
final protected static int ID_Th10Tx100Cr10000(Code)



ID_Th10Tx100Cr2000
final protected static int ID_Th10Tx100Cr2000(Code)



ID_Th10Tx100Cr500
final protected static int ID_Th10Tx100Cr500(Code)



ID_Th10Tx10Cr1
final protected static int ID_Th10Tx10Cr1(Code)



ID_Th10Tx10Cr10
final protected static int ID_Th10Tx10Cr10(Code)



ID_Th10Tx10Cr100
final protected static int ID_Th10Tx10Cr100(Code)



ID_Th10Tx10Cr1000
final protected static int ID_Th10Tx10Cr1000(Code)



ID_Th10Tx10Cr10000
final protected static int ID_Th10Tx10Cr10000(Code)



ID_Th10Tx10Cr2000
final protected static int ID_Th10Tx10Cr2000(Code)



ID_Th10Tx10Cr500
final protected static int ID_Th10Tx10Cr500(Code)



ID_Th1Tx100000Cr1
final protected static int ID_Th1Tx100000Cr1(Code)



ID_Th1Tx100000Cr10
final protected static int ID_Th1Tx100000Cr10(Code)



ID_Th1Tx10000Cr1
final protected static int ID_Th1Tx10000Cr1(Code)



ID_Th1Tx10000Cr10
final protected static int ID_Th1Tx10000Cr10(Code)



ID_Th1Tx10000Cr100
final protected static int ID_Th1Tx10000Cr100(Code)



ID_Th1Tx1000Cr1
final protected static int ID_Th1Tx1000Cr1(Code)



ID_Th1Tx1000Cr10
final protected static int ID_Th1Tx1000Cr10(Code)



ID_Th1Tx1000Cr100
final protected static int ID_Th1Tx1000Cr100(Code)



ID_Th1Tx1000Cr1000
final protected static int ID_Th1Tx1000Cr1000(Code)



ID_Th1Tx1000Cr2000
final protected static int ID_Th1Tx1000Cr2000(Code)



ID_Th1Tx1000Cr500
final protected static int ID_Th1Tx1000Cr500(Code)



ID_Th1Tx100Cr1
final protected static int ID_Th1Tx100Cr1(Code)



ID_Th1Tx100Cr10
final protected static int ID_Th1Tx100Cr10(Code)



ID_Th1Tx100Cr100
final protected static int ID_Th1Tx100Cr100(Code)



ID_Th1Tx100Cr1000
final protected static int ID_Th1Tx100Cr1000(Code)



ID_Th1Tx100Cr10000
final protected static int ID_Th1Tx100Cr10000(Code)



ID_Th1Tx100Cr2000
final protected static int ID_Th1Tx100Cr2000(Code)



ID_Th1Tx100Cr500
final protected static int ID_Th1Tx100Cr500(Code)



ID_Th1Tx10Cr1
final protected static int ID_Th1Tx10Cr1(Code)



ID_Th1Tx10Cr10
final protected static int ID_Th1Tx10Cr10(Code)



ID_Th1Tx10Cr100
final protected static int ID_Th1Tx10Cr100(Code)



ID_Th1Tx10Cr1000
final protected static int ID_Th1Tx10Cr1000(Code)



ID_Th1Tx10Cr10000
final protected static int ID_Th1Tx10Cr10000(Code)



ID_Th1Tx10Cr2000
final protected static int ID_Th1Tx10Cr2000(Code)



ID_Th1Tx10Cr500
final protected static int ID_Th1Tx10Cr500(Code)



ID_Th2
final protected static int ID_Th2(Code)



ID_Th2Tx100000Cr1
final protected static int ID_Th2Tx100000Cr1(Code)



ID_Th2Tx100000Cr10
final protected static int ID_Th2Tx100000Cr10(Code)



ID_Th2Tx10000Cr1
final protected static int ID_Th2Tx10000Cr1(Code)



ID_Th2Tx10000Cr10
final protected static int ID_Th2Tx10000Cr10(Code)



ID_Th2Tx10000Cr100
final protected static int ID_Th2Tx10000Cr100(Code)



ID_Th2Tx1000Cr1
final protected static int ID_Th2Tx1000Cr1(Code)



ID_Th2Tx1000Cr10
final protected static int ID_Th2Tx1000Cr10(Code)



ID_Th2Tx1000Cr100
final protected static int ID_Th2Tx1000Cr100(Code)



ID_Th2Tx1000Cr1000
final protected static int ID_Th2Tx1000Cr1000(Code)



ID_Th2Tx1000Cr2000
final protected static int ID_Th2Tx1000Cr2000(Code)



ID_Th2Tx1000Cr500
final protected static int ID_Th2Tx1000Cr500(Code)



ID_Th2Tx100Cr1
final protected static int ID_Th2Tx100Cr1(Code)



ID_Th2Tx100Cr10
final protected static int ID_Th2Tx100Cr10(Code)



ID_Th2Tx100Cr100
final protected static int ID_Th2Tx100Cr100(Code)



ID_Th2Tx100Cr1000
final protected static int ID_Th2Tx100Cr1000(Code)



ID_Th2Tx100Cr10000
final protected static int ID_Th2Tx100Cr10000(Code)



ID_Th2Tx100Cr2000
final protected static int ID_Th2Tx100Cr2000(Code)



ID_Th2Tx100Cr500
final protected static int ID_Th2Tx100Cr500(Code)



ID_Th2Tx10Cr1
final protected static int ID_Th2Tx10Cr1(Code)



ID_Th2Tx10Cr10
final protected static int ID_Th2Tx10Cr10(Code)



ID_Th2Tx10Cr100
final protected static int ID_Th2Tx10Cr100(Code)



ID_Th2Tx10Cr1000
final protected static int ID_Th2Tx10Cr1000(Code)



ID_Th2Tx10Cr10000
final protected static int ID_Th2Tx10Cr10000(Code)



ID_Th2Tx10Cr2000
final protected static int ID_Th2Tx10Cr2000(Code)



ID_Th2Tx10Cr500
final protected static int ID_Th2Tx10Cr500(Code)



ID_Th3
final protected static int ID_Th3(Code)



ID_Th3Tx100000Cr1
final protected static int ID_Th3Tx100000Cr1(Code)



ID_Th3Tx100000Cr10
final protected static int ID_Th3Tx100000Cr10(Code)



ID_Th3Tx10000Cr1
final protected static int ID_Th3Tx10000Cr1(Code)



ID_Th3Tx10000Cr10
final protected static int ID_Th3Tx10000Cr10(Code)



ID_Th3Tx10000Cr100
final protected static int ID_Th3Tx10000Cr100(Code)



ID_Th3Tx1000Cr1
final protected static int ID_Th3Tx1000Cr1(Code)



ID_Th3Tx1000Cr10
final protected static int ID_Th3Tx1000Cr10(Code)



ID_Th3Tx1000Cr100
final protected static int ID_Th3Tx1000Cr100(Code)



ID_Th3Tx1000Cr1000
final protected static int ID_Th3Tx1000Cr1000(Code)



ID_Th3Tx1000Cr2000
final protected static int ID_Th3Tx1000Cr2000(Code)



ID_Th3Tx1000Cr500
final protected static int ID_Th3Tx1000Cr500(Code)



ID_Th3Tx100Cr1
final protected static int ID_Th3Tx100Cr1(Code)



ID_Th3Tx100Cr10
final protected static int ID_Th3Tx100Cr10(Code)



ID_Th3Tx100Cr100
final protected static int ID_Th3Tx100Cr100(Code)



ID_Th3Tx100Cr1000
final protected static int ID_Th3Tx100Cr1000(Code)



ID_Th3Tx100Cr10000
final protected static int ID_Th3Tx100Cr10000(Code)



ID_Th3Tx100Cr2000
final protected static int ID_Th3Tx100Cr2000(Code)



ID_Th3Tx100Cr500
final protected static int ID_Th3Tx100Cr500(Code)



ID_Th3Tx10Cr1
final protected static int ID_Th3Tx10Cr1(Code)



ID_Th3Tx10Cr10
final protected static int ID_Th3Tx10Cr10(Code)



ID_Th3Tx10Cr100
final protected static int ID_Th3Tx10Cr100(Code)



ID_Th3Tx10Cr1000
final protected static int ID_Th3Tx10Cr1000(Code)



ID_Th3Tx10Cr10000
final protected static int ID_Th3Tx10Cr10000(Code)



ID_Th3Tx10Cr2000
final protected static int ID_Th3Tx10Cr2000(Code)



ID_Th3Tx10Cr500
final protected static int ID_Th3Tx10Cr500(Code)



ID_Th4
final protected static int ID_Th4(Code)



ID_Th4Tx100000Cr1
final protected static int ID_Th4Tx100000Cr1(Code)



ID_Th4Tx100000Cr10
final protected static int ID_Th4Tx100000Cr10(Code)



ID_Th4Tx10000Cr1
final protected static int ID_Th4Tx10000Cr1(Code)



ID_Th4Tx10000Cr10
final protected static int ID_Th4Tx10000Cr10(Code)



ID_Th4Tx10000Cr100
final protected static int ID_Th4Tx10000Cr100(Code)



ID_Th4Tx1000Cr1
final protected static int ID_Th4Tx1000Cr1(Code)



ID_Th4Tx1000Cr10
final protected static int ID_Th4Tx1000Cr10(Code)



ID_Th4Tx1000Cr100
final protected static int ID_Th4Tx1000Cr100(Code)



ID_Th4Tx1000Cr1000
final protected static int ID_Th4Tx1000Cr1000(Code)



ID_Th4Tx1000Cr2000
final protected static int ID_Th4Tx1000Cr2000(Code)



ID_Th4Tx1000Cr500
final protected static int ID_Th4Tx1000Cr500(Code)



ID_Th4Tx100Cr1
final protected static int ID_Th4Tx100Cr1(Code)



ID_Th4Tx100Cr10
final protected static int ID_Th4Tx100Cr10(Code)



ID_Th4Tx100Cr100
final protected static int ID_Th4Tx100Cr100(Code)



ID_Th4Tx100Cr1000
final protected static int ID_Th4Tx100Cr1000(Code)



ID_Th4Tx100Cr10000
final protected static int ID_Th4Tx100Cr10000(Code)



ID_Th4Tx100Cr2000
final protected static int ID_Th4Tx100Cr2000(Code)



ID_Th4Tx100Cr500
final protected static int ID_Th4Tx100Cr500(Code)



ID_Th4Tx10Cr1
final protected static int ID_Th4Tx10Cr1(Code)



ID_Th4Tx10Cr10
final protected static int ID_Th4Tx10Cr10(Code)



ID_Th4Tx10Cr100
final protected static int ID_Th4Tx10Cr100(Code)



ID_Th4Tx10Cr1000
final protected static int ID_Th4Tx10Cr1000(Code)



ID_Th4Tx10Cr10000
final protected static int ID_Th4Tx10Cr10000(Code)



ID_Th4Tx10Cr2000
final protected static int ID_Th4Tx10Cr2000(Code)



ID_Th4Tx10Cr500
final protected static int ID_Th4Tx10Cr500(Code)



INTERACTIVE
protected String INTERACTIVE(Code)



NBPRINT
protected String NBPRINT(Code)



STRESS_LOG_NAME
final public static String STRESS_LOG_NAME(Code)



TESTNBC
final protected static int[] TESTNBC(Code)



THREAD
protected String THREAD(Code)



TIMEOUT
protected String TIMEOUT(Code)



TX
protected String TX(Code)



cac
protected static CacheAttributeController cac(Code)



debug
protected boolean debug(Code)



errors
public static Vector errors(Code)



hasRan
protected boolean hasRan(Code)



interactive
protected boolean interactive(Code)



nbPrint
protected static int nbPrint(Code)



nbTest
protected static int nbTest(Code)



rollbackExceptions
public static Vector rollbackExceptions(Code)




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




Method Detail
beginTx
protected void beginTx(PersistenceManager pm, Task task, int threadId, int txId)(Code)
Starts a JDO transaction



cleanup
protected void cleanup()(Code)



closePM
protected void closePM(PersistenceManager pm, int threadId, int txId, Task task, PerformResult res)(Code)
Closes a persistence manager



commitTx
protected void commitTx(PersistenceManager pm, Task task, int threadId, int txId)(Code)
Commits a JDO transaction



displayMemory
protected void displayMemory()(Code)
Logs the memory informations



getClassNamesToInit
abstract protected String[] getClassNamesToInit()(Code)
the class name of to initialize



getLogPrefix
protected String getLogPrefix()(Code)



getPM
protected PersistenceManager getPM(Task task, int threadId, int txId)(Code)
Allocate a PersistenceManager



getPMFProperties
public Properties getPMFProperties()(Code)



getStartId
protected int getStartId(int testid)(Code)



initDataStructure
protected void initDataStructure(boolean clean) throws Exception(Code)



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



newTaskManager
protected TaskManager newTaskManager(int nbTx, int nbThread, int timeout, Object ctx)(Code)
Creates a task manager with several task



newTaskManager
protected TaskManager newTaskManager(int nbTx, int nbThread, int timeout, Object ctx)(Code)
Creates a task manager with a single task



perform
protected void perform(int nbThread, int nbTx, int threadTimeout, Object ctx)(Code)



perform
protected void perform(int nbThread, int nbTx, int timeout, Object ctx)(Code)
Launch the threads to execute the transactions
Parameters:
  nbThread - Number of threads per task
Parameters:
  nbTx - Number of transactions per task
Parameters:
  timeout - Time to wait for a thread to die (in milliseconds)
Parameters:
  ctx - is a context helping the transaction execution



perform
abstract protected void perform(Task task, int threadId, int txId, Object ctx, PerformResult res)(Code)
executes a transaction
Parameters:
  task - task asking the transaction execution
Parameters:
  threadId - thread identifier running the transaction
Parameters:
  txId - transaction identifier
Parameters:
  ctx - context of the test
Parameters:
  res - result of the transaction execution. This object must befilled/modified by the method.



prepareTask
protected void prepareTask(Task task, Object ctx)(Code)
Called before a task execution (like setup() method)
Parameters:
  task - which is going to be executed
Parameters:
  ctx - the context of the test



prepareTest
protected void prepareTest(TaskManager tm, Object ctx)(Code)
Called before the test execution (like setup() method)
Parameters:
  tm - the task manager running the test
Parameters:
  ctx - the context of the test



rollbackOnException
protected void rollbackOnException(PersistenceManager pm, Exception e, PerformResult res, Task task, int threadId, int txId)(Code)
Rollbacks a JDO transaction due to an exception



setUp
public void setUp() throws Exception(Code)



stopOnError
protected void stopOnError(PersistenceManager pm, Throwable t, PerformResult res, Task task, int threadId, int txId)(Code)
Stop the transactions execution due to an error.



tearDown
public void tearDown()(Code)



Fields inherited from org.objectweb.speedo.SpeedoTestHelper
final public static String LOG_NAME(Code)(Java Doc)
public Logger logger(Code)(Java Doc)
protected LoggerFactory loggerFactory(Code)(Java Doc)
protected static PersistenceManagerFactory pmf(Code)(Java Doc)
protected static boolean pmfProblem(Code)(Java Doc)
protected Properties pmfProp(Code)(Java Doc)

Methods inherited from org.objectweb.speedo.SpeedoTestHelper
public void assertSameCollection(String msg, Collection expected, Collection found)(Code)(Java Doc)
public void assertSameList(String msg, List expected, List found)(Code)(Java Doc)
protected int deleteAllInstances(Class clazz)(Code)(Java Doc)
protected CacheAttributeController getCacheAttributeController(PersistenceManagerFactory _pmf) throws Exception(Code)(Java Doc)
public String getConnectionDriverNameProperty(Properties p)(Code)(Java Doc)
public static int getIntProperty(String propertyName, int defaultValue)(Code)(Java Doc)
public Logger getLogger()(Code)(Java Doc)
abstract protected String getLoggerName()(Code)(Java Doc)
public PMapper getMapper(PersistenceManagerFactory _pmf) throws Exception(Code)(Java Doc)
public PersistenceManagerFactory getPMF()(Code)(Java Doc)
public Properties getPMFProperties()(Code)(Java Doc)
public Properties getPMFPropertiesFromFile()(Code)(Java Doc)
public Component getSubComponent(Component parent, String path, String s) throws Exception(Code)(Java Doc)
final public static String i2s(int val, int length)(Code)(Java Doc)
final public static int length(int val)(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.