|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.apache.torque.pool.ConnectionPool.Monitor
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 |
private boolean isRun
Constructor Detail |
protected ConnectionPool.Monitor()
Method Detail |
public void run()
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |