Keel 2.1RC2

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

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.SingleThreadedPoolComparisonProfile
All Implemented Interfaces:
junit.framework.Test

public class SingleThreadedPoolComparisonProfile
extends PoolComparisonProfileAbstract

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

Version:
$Id: SingleThreadedPoolComparisonProfile.java,v 1.5 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
 
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
SingleThreadedPoolComparisonProfile(java.lang.String name)
           
 
Method Summary
protected  long getPoolRunTime(Pool pool, int gets)
           
 void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_LargePoolables()
          Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.
 void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_MediumPoolables()
          Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.
 void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_SmallPoolables()
          Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.
 void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_LargePoolables()
          Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.
 void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_MediumPoolables()
          Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.
 void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_SmallPoolables()
          Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.
 
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
 

Constructor Detail

SingleThreadedPoolComparisonProfile

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

testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_SmallPoolables

public void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_SmallPoolables()
                                                                                         throws java.lang.Exception
Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.

Test will use pools with a max size of 10, while getting up to 10 at a time, Poolables are small objects.

Throws:
java.lang.Exception

testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_SmallPoolables

public void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_SmallPoolables()
                                                                                         throws java.lang.Exception
Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.

Test will use pools with a max size of 10, while getting up to 20 at a time, Poolables are small objects.

Throws:
java.lang.Exception

testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_MediumPoolables

public void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_MediumPoolables()
                                                                                          throws java.lang.Exception
Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.

Test will use pools with a max size of 10, while getting up to 10 at a time, Poolables are medium objects.

Throws:
java.lang.Exception

testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_MediumPoolables

public void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_MediumPoolables()
                                                                                          throws java.lang.Exception
Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.

Test will use pools with a max size of 10, while getting up to 20 at a time, Poolables are medium objects.

Throws:
java.lang.Exception

testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_LargePoolables

public void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets10_LargePoolables()
                                                                                         throws java.lang.Exception
Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.

Test will use pools with a max size of 10, while getting up to 10 at a time, Poolables are large objects.

Throws:
java.lang.Exception

testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_LargePoolables

public void testCompare_SingleThreadedPool_And_ResourceLimitingPool_Max10_Gets20_LargePoolables()
                                                                                         throws java.lang.Exception
Compare the SingleThreadedPool and ResourceLimitingPool when the ResourceLimitingPool is configured to act like a SingleThreadedPool.

Test will use pools with a max size of 10, while getting up to 20 at a time, Poolables are large objects.

Throws:
java.lang.Exception

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.