Alphabetical Index

C D G I L M O P R S T U W

C

cancelThreads(int) - method in class com.clarkware.junitperf.ThreadBarrier
Cancels the specified number of threads.
cleanup() - method in class com.clarkware.junitperf.LoadTest
ConstantTimer - class com.clarkware.junitperf.ConstantTimer
The ConstantTimer is a Timer with a constant delay.
ConstantTimer(long) - constructor for class com.clarkware.junitperf.ConstantTimer
Constructs a ConstantTimer with the specified delay.
countTestCases() - method in class com.clarkware.junitperf.LoadTest
Returns the number of tests in this load test.
countTestCases() - method in class com.clarkware.junitperf.TestFactory
Returns the number of tests in this test.
countTestCases() - method in class com.clarkware.junitperf.ThreadedTest
Returns the number of test cases in this threaded test.
countTestCases() - method in class com.clarkware.junitperf.TimedTest
Returns the number of tests in this timed test.

D

dispatchedCount - field in class com.clarkware.junitperf.ThreadBarrier

G

getDelay() - method in class com.clarkware.junitperf.ConstantTimer
Returns the timer delay.
getDelay() - method in class com.clarkware.junitperf.LoadTest
getDelay() - method in class com.clarkware.junitperf.RandomTimer
Returns the timer delay.
getDelay() - method in class com.clarkware.junitperf.Timer
Returns the timer delay.
getElapsedTime(long) - method in class com.clarkware.junitperf.TimedTest
getTest() - method in class com.clarkware.junitperf.TestFactory
getTestSuite() - method in class com.clarkware.junitperf.TestFactory

I

isReached() - method in class com.clarkware.junitperf.ThreadBarrier
Determines whether the thread barrier has been reached - when all dispatched threads have returned.

L

LoadTest - class com.clarkware.junitperf.LoadTest
The LoadTest is a test decorator that runs a test with a simulated number of concurrent users and iterations.
LoadTest(Test,int) - constructor for class com.clarkware.junitperf.LoadTest
Constructs a LoadTest to decorate the specified test using the specified number of concurrent users starting simultaneously.
LoadTest(Test,int,com.clarkware.junitperf.Timer) - constructor for class com.clarkware.junitperf.LoadTest
Constructs a LoadTest to decorate the specified test using the specified number of concurrent users and delay timer.
LoadTest(Test,int,int) - constructor for class com.clarkware.junitperf.LoadTest
Constructs a LoadTest to decorate the specified test using the specified number of concurrent users starting simultaneously and the number of iterations per user.
LoadTest(Test,int,int,com.clarkware.junitperf.Timer) - constructor for class com.clarkware.junitperf.LoadTest
Constructs a LoadTest to decorate the specified test using the specified number of concurrent users, number of iterations per user, and delay timer.

M

makeTestSuite() - method in class com.clarkware.junitperf.TestFactory
makeTestSuite() - method in class com.clarkware.junitperf.TestMethodFactory

O

onCompletion(Thread) - method in class com.clarkware.junitperf.ThreadBarrier
Called when the specified thread is complete.
outOfTime() - method in class com.clarkware.junitperf.TimedTest
Determines whether the maximum elapsed time of the test was exceeded.

P

printElapsedTime(long) - method in class com.clarkware.junitperf.TimedTest

R

RandomTimer - class com.clarkware.junitperf.RandomTimer
The RandomTimer is a Timer with a random delay and a uniformly distributed variation.
RandomTimer(long,double) - constructor for class com.clarkware.junitperf.RandomTimer
Constructs a RandomTimer with the specified minimum delay and variation.
returnedCount - field in class com.clarkware.junitperf.ThreadBarrier
run(TestResult) - method in class com.clarkware.junitperf.LoadTest
Runs the test.
run(TestResult) - method in class com.clarkware.junitperf.TestFactory
Runs an instance of the Test class and collects its result in the specified TestResult.
run(TestResult) - method in class com.clarkware.junitperf.ThreadedTest
Runs this test.
run(TestResult) - method in class com.clarkware.junitperf.TimedTest
Runs the test.
runUntilTestCompletion(TestResult) - method in class com.clarkware.junitperf.TimedTest
Runs the test until test completion and then signals a failure if the maximum elapsed time was exceeded.
runUntilTimeExpires(TestResult) - method in class com.clarkware.junitperf.TimedTest
Runs the test and immediately signals a failure when the maximum elapsed time is exceeded.

S

setEnforceTestAtomicity(boolean) - method in class com.clarkware.junitperf.LoadTest
Indicates whether test atomicity should be enforced.
setQuiet() - method in class com.clarkware.junitperf.TimedTest
Disables the output of the test's elapsed time.
setTestResult(TestResult) - method in class com.clarkware.junitperf.ThreadedTestGroup
Sets the current test result.
sleep(long) - method in class com.clarkware.junitperf.LoadTest

T

testClass - field in class com.clarkware.junitperf.TestFactory
TestFactory - class com.clarkware.junitperf.TestFactory
The TestFactory class creates thread-local TestSuite instances.
TestFactory(Class) - constructor for class com.clarkware.junitperf.TestFactory
Constructs a TestFactory instance.
TestMethodFactory - class com.clarkware.junitperf.TestMethodFactory
The TestMethodFactory class is a TestFactory that creates thread-local TestSuite instances containing a specific test method of a TestCase.
TestMethodFactory(Class,String) - constructor for class com.clarkware.junitperf.TestMethodFactory
Constructs a TestMethodFactory instance.
ThreadBarrier - class com.clarkware.junitperf.ThreadBarrier
The ThreadBarrier class provides a callback method for threads to signal their completion.
ThreadBarrier(int) - constructor for class com.clarkware.junitperf.ThreadBarrier
Constructs a ThreadBarrier with the specified number of threads to wait for.
ThreadedTest - class com.clarkware.junitperf.ThreadedTest
The ThreadedTest is a test decorator that runs a test in a separate thread.
ThreadedTest(Test) - constructor for class com.clarkware.junitperf.ThreadedTest
Constructs a ThreadedTest to decorate the specified test using the same thread group as the current thread.
Constructs a ThreadedTest to decorate the specified test using the specified thread group and thread barrier.
ThreadedTestGroup - class com.clarkware.junitperf.ThreadedTestGroup
The ThreadedTestGroup is a ThreadGroup that catches and handles exceptions thrown by threads created and started by ThreadedTest instances.
ThreadedTestGroup(Test) - constructor for class com.clarkware.junitperf.ThreadedTestGroup
Constructs a ThreadedTestGroup for the specified test.
TimedTest - class com.clarkware.junitperf.TimedTest
The TimedTest is a test decorator that runs a test and measures the elapsed time of the test.
TimedTest(Test,long) - constructor for class com.clarkware.junitperf.TimedTest
Constructs a TimedTest to decorate the specified test with the specified maximum elapsed time.
TimedTest(Test,long,boolean) - constructor for class com.clarkware.junitperf.TimedTest
Constructs a TimedTest to decorate the specified test with the specified maximum elapsed time.
Timer - interface com.clarkware.junitperf.Timer
The Timer interface defines the common interface implemented by all classes whose instances serve as pluggable timers.
toString() - method in class com.clarkware.junitperf.LoadTest
toString() - method in class com.clarkware.junitperf.TestFactory
Returns the test description.
toString() - method in class com.clarkware.junitperf.ThreadedTest
Returns the test description.
toString() - method in class com.clarkware.junitperf.TimedTest
Returns the test description.

U

uncaughtException(Thread,Throwable) - method in class com.clarkware.junitperf.ThreadedTestGroup
Called when a thread in this thread group stops because of an uncaught exception.

W

waitForAllThreadsToComplete() - method in class com.clarkware.junitperf.LoadTest
waitForTestCompletion() - method in class com.clarkware.junitperf.LoadTest
waitForThreadedTestThreadsToComplete() - method in class com.clarkware.junitperf.LoadTest

Copyright B) 1999-2005 Clarkware Consulting, Inc.