org.apache.turbine.services.db
Class TurbinePoolBrokerService.Monitor

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.apache.turbine.services.db.TurbinePoolBrokerService.Monitor
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TurbinePoolBrokerService

protected class TurbinePoolBrokerService.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 database.logInterval property to the number of milliseconds you want to elapse between loging the number of connections.


Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
protected TurbinePoolBrokerService.Monitor()
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TurbinePoolBrokerService.Monitor

protected TurbinePoolBrokerService.Monitor()
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread


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