Class PoolTest

java.lang.Object
com.nt.udc.util.threadpool.test.PoolTest

public class PoolTest extends Object
Title: Copyright: Copyright (c) Company: Nortel Networks
  • Field Details

    • i

      public static int i
  • Constructor Details

    • PoolTest

      public PoolTest()
  • Method Details

    • createPool

      public ThreadPool createPool()
    • createTask

      public PoolTask createTask()
    • logDir

      public File logDir()
    • getLogger

      public Logger getLogger()
    • simpleTest1

      public void simpleTest1()
      tests the pool with one task
    • simpleTest2

      public void simpleTest2()
      tests the pool with mulitple tasks
    • tooManyTasksTest

      public void tooManyTasksTest()
      test the pool when too many tasks are requested
    • testMany1

      public void testMany1()
      simple test to using the pool several times with one task
    • testMany2

      public void testMany2()
      simple test to using the pool several times with 2 tasks
    • testShutdown

      public void testShutdown()
      test to see if an exception is thrown after shutdown
    • testSimpleShutdown

      public void testSimpleShutdown()
    • main

      public static void main(String[] args)