Class TomcatConnectionPoolConfigurator

java.lang.Object
com.reallifedeveloper.common.infrastructure.jmx.TomcatConnectionPoolConfigurator
All Implemented Interfaces:
ConnectionPoolConfiguratorMXBean

@ManagedResource(description="Connection Pool Configuration") public final class TomcatConnectionPoolConfigurator extends Object implements ConnectionPoolConfiguratorMXBean
An implementation of the JMX ConnectionPoolConfiguratorMXBean interface that delegates to an org.apache.tomcat.jdbc.pool.DataSource object.
Author:
RealLifeDeveloper
  • Constructor Summary

    Constructors
    Constructor
    Description
    TomcatConnectionPoolConfigurator(org.apache.tomcat.jdbc.pool.DataSource ds)
    Creates a new TomcatConnectionPoolConfigurator that delegates to the given data source.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Forces an abandon check on the connection pool.
    void
    Forces a check for resizing of the idle connections.
    int
    Gives the number of connections in use by the application.
    Gives the fully qualified Java class name of the JDBC driver used.
    int
    Gives the number of established but idle connections.
    int
    Gives the current size of the pool.
    Gives the URL used to connect to the database.
    int
    Gives the number of threads waiting for a connection.
    void
    Purges all connections in the pool.
    void
    Purges connections when they are returned from the pool.
    void
    Performs a validation on idle connections.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait