| org.objectweb.speedo.stress.StressHelper org.objectweb.speedo.stress.CDRelationHelper
All known Subclasses: org.objectweb.speedo.stress.TestRelationN_MConcurrency, org.objectweb.speedo.stress.TestRelation1_1Concurrency, org.objectweb.speedo.stress.TestRelation1_NConcurrency,
CDRelationHelper | abstract public class CDRelationHelper extends StressHelper (Code) | | author: M. Guillemin |
Inner Class :public class CDCtx | |
oidsC | protected static Object[] oidsC(Code) | | is the lists of object identifier prepared before the transaction
execution.
if (oids == null) {
db is not initialised
} else if (oids != null && oids.length==0) {
db initialised and keepOid = false
} else {
db initialised and keepOid == true
}
|
getClassNamesToInit | protected String[] getClassNamesToInit()(Code) | | |
getNbSucc | abstract protected int getNbSucc()(Code) | | |
getOid | protected int getOid(CDCtx cdctx, boolean useTwiceTheSameOid, int nbSucc)(Code) | | |
keepOid | protected boolean keepOid()(Code) | | |
prepareTask | protected void prepareTask(Task task, Object _ctx)(Code) | | Creates the persistent object if it is not already done.
Parameters: task - the task to prepare Parameters: _ctx - the context of the test. |
prepareTest | protected void prepareTest(TaskManager tm, Object ctx)(Code) | | |
setUp | public void setUp() throws Exception(Code) | | IMPORTANT: dot not removed data on support in order to avoid next
creations
|
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)
|
|
|