org.apache.commons.monitoring.jdbc
Class MonitoredConnection

java.lang.Object
  extended by org.apache.commons.monitoring.jdbc.MonitoredConnection
All Implemented Interfaces:
InvocationHandler

public class MonitoredConnection
extends Object
implements InvocationHandler

Author:
Nicolas De Loof

Constructor Summary
MonitoredConnection(Connection connection, StopWatch stopWatch)
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static Connection monitor(Connection connection, Counter counter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredConnection

public MonitoredConnection(Connection connection,
                           StopWatch stopWatch)
Parameters:
connection - target connection
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

monitor

public static Connection monitor(Connection connection,
                                 Counter counter)


Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.