org.objectweb.cjdbc.scenario.users
Class IvanielinScenario

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.objectweb.cjdbc.scenario.templates.Template
              extended byorg.objectweb.cjdbc.scenario.templates.SimpleHorizontalTemplate
                  extended byorg.objectweb.cjdbc.scenario.templates.HorizontalRAIDb1WithCacheTemplate
                      extended byorg.objectweb.cjdbc.scenario.users.IvanielinScenario

public class IvanielinScenario
extends HorizontalRAIDb1WithCacheTemplate

This class defines a Ivanielin Scenario

Version:
1.0
Author:
Nicolas Modrzyk
See Also:
Serialized Form

Nested Class Summary
 class IvanielinScenario.UpdateThread
          This class defines a UpdateThread
 
Field Summary
(package private)  java.lang.String insert
           
(package private)  java.lang.String insertBlob
           
(package private)  java.lang.Object iWantoblobthis
           
(package private)  java.lang.String select
           
(package private) static int threadid
           
(package private)  java.lang.String update
           
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.SimpleHorizontalTemplate
cm, controller1, controller2, hm, hm1, hm2, hm3, hm4, mainVdb1, mainVdb2, port1, port2
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
IvanielinScenario()
           
 
Method Summary
 void testTwoThreadsOneController()
          Test proposed by Ivanielin.
 void testTwoThreadsTwoControllers()
          Two threads are using each a different url to connect to the controller
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.HorizontalRAIDb1WithCacheTemplate
setUp
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.SimpleHorizontalTemplate
setDatabasesUp, tearDown
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.Template
getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getHypersonicConnection
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
getTextPath, getUserDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

update

final java.lang.String update
See Also:
Constant Field Values

insert

final java.lang.String insert
See Also:
Constant Field Values

select

final java.lang.String select
See Also:
Constant Field Values

insertBlob

final java.lang.String insertBlob
See Also:
Constant Field Values

iWantoblobthis

java.lang.Object iWantoblobthis

threadid

static int threadid
Constructor Detail

IvanielinScenario

public IvanielinScenario()
Method Detail

testTwoThreadsOneController

public void testTwoThreadsOneController()
                                 throws java.lang.Exception
Test proposed by Ivanielin. The tow threads are using the same controller url

Throws:
java.lang.Exception - if fails

testTwoThreadsTwoControllers

public void testTwoThreadsTwoControllers()
                                  throws java.lang.Exception
Two threads are using each a different url to connect to the controller

Throws:
java.lang.Exception - if fails


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.