org.sadun.util.pool.connection
Class Test

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.sadun.util.pool.connection.Test
All Implemented Interfaces:
java.lang.Runnable

public class Test
extends java.lang.Thread

A test class. The main method produces 100 threads asking resources to a shared connection and running the same query, each delayed by a random time interval.

Author:
Cristiano Sadun

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Test(ConnectionPool pool)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Test

public Test(ConnectionPool pool)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.ClassNotFoundException,
                        java.sql.SQLException,
                        java.io.FileNotFoundException
Throws:
java.lang.ClassNotFoundException
java.sql.SQLException
java.io.FileNotFoundException

run

public void run()

shutdown

public void shutdown()