org.apache.torque.pool
Class ConnectionPool.Monitor

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.torque.pool.ConnectionPool.Monitor
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ConnectionPool

protected class ConnectionPool.Monitor
extends java.lang.Thread

This inner class monitors the PoolBrokerService. This class is capable of logging the number of connections available in the pool periodically. This can prove useful if you application frozes after certain amount of time/requests and you suspect that you have connection leakage problem. Set the logInterval property of your pool definition to the number of seconds you want to elapse between loging the number of connections.


Field Summary
private  boolean isRun
          true if the monot is running
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected ConnectionPool.Monitor()
           
 
Method Summary
 void run()
          run method for the monitor thread
 void shutdown()
          Shut down the monitor
 
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
 

Field Detail

isRun

private boolean isRun
true if the monot is running

Constructor Detail

ConnectionPool.Monitor

protected ConnectionPool.Monitor()
Method Detail

run

public void run()
run method for the monitor thread


shutdown

public void shutdown()
Shut down the monitor



Copyright © 1999-2003 Apache Software Foundation. All Rights Reserved.