Keel 2.1RC2

org.apache.avalon.excalibur.pool.test
Class MultiThreadedPoolComparisonProfile

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.avalon.excalibur.pool.test.PoolComparisonProfileAbstract
              extended byorg.apache.avalon.excalibur.pool.test.MultiThreadedPoolComparisonProfile
All Implemented Interfaces:
junit.framework.Test

public class MultiThreadedPoolComparisonProfile
extends PoolComparisonProfileAbstract

This is used to profile and compare various pool implementations given a single access thread.

Version:
$Id: MultiThreadedPoolComparisonProfile.java,v 1.6 2004/03/29 16:50:37 mcconnell Exp $
Author:

Nested Class Summary
 
Nested classes inherited from class org.apache.avalon.excalibur.pool.test.PoolComparisonProfileAbstract
PoolComparisonProfileAbstract.LargePoolable, PoolComparisonProfileAbstract.MediumPoolable, PoolComparisonProfileAbstract.NoPoolingPool, PoolComparisonProfileAbstract.SmallPoolable
 
Field Summary
protected  int m_getCount
           
protected  java.lang.Object m_semaphore
           
protected  java.lang.Throwable m_throwable
           
protected static int THREADS
           
 
Fields inherited from class org.apache.avalon.excalibur.pool.test.PoolComparisonProfileAbstract
m_logger, m_poolLogger, TEST_SIZE
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
MultiThreadedPoolComparisonProfile(java.lang.String name)
           
 
Method Summary
protected  long getPoolRunTime(Pool pool, int gets)
           
 
Methods inherited from class org.apache.avalon.excalibur.pool.test.PoolComparisonProfileAbstract
generalTest, getShortClassName, resetMemory, testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max10_Gets10_MediumPoolables, testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_LargePoolables, testCompare_HardResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_SmallPoolables, testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_LargePoolables, testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_MediumPoolables, testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets100_SmallPoolables, testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_LargePoolables, testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_MediumPoolables, testCompare_SoftResourceLimitingPool_And_ResourceLimitingPool_Max100_Gets200_SmallPoolables
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

THREADS

protected static final int THREADS
See Also:
Constant Field Values

m_semaphore

protected java.lang.Object m_semaphore

m_getCount

protected int m_getCount

m_throwable

protected java.lang.Throwable m_throwable
Constructor Detail

MultiThreadedPoolComparisonProfile

public MultiThreadedPoolComparisonProfile(java.lang.String name)
Method Detail

getPoolRunTime

protected long getPoolRunTime(Pool pool,
                              int gets)
                       throws java.lang.Exception
Specified by:
getPoolRunTime in class PoolComparisonProfileAbstract
Throws:
java.lang.Exception

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.