org.jboss.test.cache.stress
Class ReadWriteLockWithUpgradeStressTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.cache.stress.ReadWriteLockWithUpgradeStressTestCase

public class ReadWriteLockWithUpgradeStressTestCase
extends TestCase

Stress test for RWLock with upgrade.

See Also:
Serialized Form

Constructor Summary
ReadWriteLockWithUpgradeStressTestCase(java.lang.String name)
           
 
Method Summary
static void log(java.lang.String str)
           
static void main(java.lang.String[] args)
           
protected  java.lang.Thread readAttemptThread(java.lang.String name, long msecs)
           
 void setUp()
           
static Test suite()
           
 void tearDown()
           
 void testReadWriteAttempt1()
           
 void testReadWriteAttempt2()
           
 void testReadWriteAttempt3()
           
 void testWriteWriteAttempt()
           
protected  java.lang.Thread upgradeAttemptThread(java.lang.String name, long msecs)
           
protected  java.lang.Thread writeAttemptThread(java.lang.String name, long msecs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadWriteLockWithUpgradeStressTestCase

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

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

suite

public static Test suite()

setUp

public void setUp()

tearDown

public void tearDown()

readAttemptThread

protected java.lang.Thread readAttemptThread(java.lang.String name,
                                             long msecs)

writeAttemptThread

protected java.lang.Thread writeAttemptThread(java.lang.String name,
                                              long msecs)

upgradeAttemptThread

protected java.lang.Thread upgradeAttemptThread(java.lang.String name,
                                                long msecs)

testWriteWriteAttempt

public void testWriteWriteAttempt()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testReadWriteAttempt1

public void testReadWriteAttempt1()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testReadWriteAttempt2

public void testReadWriteAttempt2()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testReadWriteAttempt3

public void testReadWriteAttempt3()
                           throws java.lang.Exception
Throws:
java.lang.Exception

log

public static void log(java.lang.String str)