public class PoolTest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
i |
Constructor and Description |
---|
PoolTest() |
Modifier and Type | Method and Description |
---|---|
ThreadPool |
createPool() |
PoolTask |
createTask() |
Logger |
getLogger() |
java.io.File |
logDir() |
static void |
main(java.lang.String[] args) |
void |
simpleTest1()
tests the pool with one task
|
void |
simpleTest2()
tests the pool with mulitple tasks
|
void |
testMany1()
simple test to using the pool several times with one task
|
void |
testMany2()
simple test to using the pool several times with 2 tasks
|
void |
testShutdown()
test to see if an exception is thrown after shutdown
|
void |
testSimpleShutdown() |
void |
tooManyTasksTest()
test the pool when too many tasks are requested
|
public ThreadPool createPool()
public PoolTask createTask()
public java.io.File logDir()
public Logger getLogger()
public void simpleTest1()
public void simpleTest2()
public void tooManyTasksTest()
public void testMany1()
public void testMany2()
public void testShutdown()
public void testSimpleShutdown()
public static void main(java.lang.String[] args)