org.objectweb.cjdbc.scenario.raidb1.cache
Class ExtensiveCacheScenario

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.SimpleRaidb1Template
                  extended byorg.objectweb.cjdbc.scenario.raidb1.cache.ExtensiveCacheScenario

public class ExtensiveCacheScenario
extends SimpleRaidb1Template

This class defines a ExtensiveCacheScenario

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

Nested Class Summary
(package private)  class ExtensiveCacheScenario.CacheResult
           
 
Field Summary
(package private) static boolean DISPLAY_RESULTS
           
(package private) static java.lang.String HSQLDB
           
(package private) static int INTERVAL
           
(package private) static int LOOPS
           
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.SimpleRaidb1Template
cm, controller, controllerProcess, hm, hm1, hm2, mainVdb
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
ExtensiveCacheScenario()
           
 
Method Summary
private  void testBatchCache(int writeRatio)
           
private  ExtensiveCacheScenario.CacheResult testCache(java.lang.String databaseFile, int writeRatio)
           
 void testReadResultCache()
          Test result cache with just reads
 void testReadWriteResultCache()
          Test different cache with mixed read and write
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.SimpleRaidb1Template
setUp, 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

LOOPS

static final int LOOPS
See Also:
Constant Field Values

INTERVAL

static final int INTERVAL
See Also:
Constant Field Values

DISPLAY_RESULTS

static final boolean DISPLAY_RESULTS
See Also:
Constant Field Values

HSQLDB

static final java.lang.String HSQLDB
See Also:
Constant Field Values
Constructor Detail

ExtensiveCacheScenario

public ExtensiveCacheScenario()
Method Detail

testReadResultCache

public void testReadResultCache()
                         throws java.lang.Exception
Test result cache with just reads

Throws:
java.lang.Exception - if error occurs

testReadWriteResultCache

public void testReadWriteResultCache()
                              throws java.lang.Exception
Test different cache with mixed read and write

Throws:
java.lang.Exception - if fails

testBatchCache

private void testBatchCache(int writeRatio)
                     throws java.lang.Exception
Throws:
java.lang.Exception

testCache

private ExtensiveCacheScenario.CacheResult testCache(java.lang.String databaseFile,
                                                     int writeRatio)
                                              throws java.lang.Exception
Throws:
java.lang.Exception


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