public final class C3P0PooledConnectionPoolManager
extends java.lang.Object
| Constructor and Description |
|---|
C3P0PooledConnectionPoolManager(javax.sql.ConnectionPoolDataSource cpds,
java.util.Map flatPropertyOverrides,
java.util.Map forceUserOverrides,
int num_task_threads,
java.lang.String parentDataSourceIdentityToken,
java.lang.String parentDataSourceName) |
public C3P0PooledConnectionPoolManager(javax.sql.ConnectionPoolDataSource cpds,
java.util.Map flatPropertyOverrides,
java.util.Map forceUserOverrides,
int num_task_threads,
java.lang.String parentDataSourceIdentityToken,
java.lang.String parentDataSourceName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getThreadPoolSize()
public int getThreadPoolNumActiveThreads()
public int getThreadPoolNumIdleThreads()
public int getThreadPoolNumTasksPending()
public java.lang.String getThreadPoolStackTraces()
public java.lang.String getThreadPoolStatus()
public int getStatementDestroyerNumThreads()
public int getStatementDestroyerNumActiveThreads()
public int getStatementDestroyerNumIdleThreads()
public int getStatementDestroyerNumTasksPending()
public java.lang.String getStatementDestroyerStackTraces()
public java.lang.String getStatementDestroyerStatus()
public C3P0PooledConnectionPool getPool(java.lang.String username, java.lang.String password, boolean create) throws java.sql.SQLException
java.sql.SQLExceptionpublic C3P0PooledConnectionPool getPool(java.lang.String username, java.lang.String password) throws java.sql.SQLException
java.sql.SQLExceptionpublic C3P0PooledConnectionPool getPool(DbAuth auth) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Set getManagedAuths()
public int getNumManagedAuths()
public C3P0PooledConnectionPool getPool() throws java.sql.SQLException
java.sql.SQLExceptionpublic int getNumIdleConnectionsAllAuths()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getNumBusyConnectionsAllAuths()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getNumConnectionsAllAuths()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getNumUnclosedOrphanedConnectionsAllAuths()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getStatementCacheNumStatementsAllUsers()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getStatementCacheNumCheckedOutStatementsAllUsers()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getStatementCacheNumConnectionsWithCachedStatementsAllUsers()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getStatementDestroyerNumConnectionsInUseAllUsers()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getStatementDestroyerNumConnectionsWithDeferredDestroyStatementsAllUsers()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getStatementDestroyerNumDeferredDestroyStatementsAllUsers()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void softResetAllAuths()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
public void close(boolean close_outstanding_connections)
protected void finalize()
finalize in class java.lang.Objectpublic java.lang.String getAutomaticTestTable(java.lang.String userName)
public java.lang.String getPreferredTestQuery(java.lang.String userName)
public int getMinPoolSize(java.lang.String userName)