org.objectweb.cjdbc.scenario.raidb1.cache
Class ExtensiveCacheScenario
java.lang.Object
TestCase
org.objectweb.cjdbc.scenario.templates.NoTemplate
org.objectweb.cjdbc.scenario.templates.Template
org.objectweb.cjdbc.scenario.templates.SimpleRaidb1Template
org.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
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ExtensiveCacheScenario
public ExtensiveCacheScenario()
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.