Package com.mchange.v2.c3p0.management
Class PooledDataSourceManager
- java.lang.Object
-
- com.mchange.v2.c3p0.management.PooledDataSourceManager
-
- All Implemented Interfaces:
PooledDataSourceManagerMBean
public class PooledDataSourceManager extends java.lang.Object implements PooledDataSourceManagerMBean
-
-
Constructor Summary
Constructors Constructor Description PooledDataSourceManager(PooledDataSource pds)
-
Method Summary
-
-
-
Constructor Detail
-
PooledDataSourceManager
public PooledDataSourceManager(PooledDataSource pds)
-
-
Method Detail
-
getIdentityToken
public java.lang.String getIdentityToken()
- Specified by:
getIdentityTokenin interfacePooledDataSourceManagerMBean
-
getDataSourceName
public java.lang.String getDataSourceName()
- Specified by:
getDataSourceNamein interfacePooledDataSourceManagerMBean
-
setDataSourceName
public void setDataSourceName(java.lang.String dataSourceName)
- Specified by:
setDataSourceNamein interfacePooledDataSourceManagerMBean
-
getNumConnectionsDefaultUser
public int getNumConnectionsDefaultUser() throws java.sql.SQLException- Specified by:
getNumConnectionsDefaultUserin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumIdleConnectionsDefaultUser
public int getNumIdleConnectionsDefaultUser() throws java.sql.SQLException- Specified by:
getNumIdleConnectionsDefaultUserin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumBusyConnectionsDefaultUser
public int getNumBusyConnectionsDefaultUser() throws java.sql.SQLException- Specified by:
getNumBusyConnectionsDefaultUserin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumUnclosedOrphanedConnectionsDefaultUser
public int getNumUnclosedOrphanedConnectionsDefaultUser() throws java.sql.SQLException- Specified by:
getNumUnclosedOrphanedConnectionsDefaultUserin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getEffectivePropertyCycleDefaultUser
public float getEffectivePropertyCycleDefaultUser() throws java.sql.SQLException- Specified by:
getEffectivePropertyCycleDefaultUserin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getThreadPoolSize
public int getThreadPoolSize() throws java.sql.SQLException- Specified by:
getThreadPoolSizein interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getThreadPoolNumActiveThreads
public int getThreadPoolNumActiveThreads() throws java.sql.SQLException- Specified by:
getThreadPoolNumActiveThreadsin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getThreadPoolNumIdleThreads
public int getThreadPoolNumIdleThreads() throws java.sql.SQLException- Specified by:
getThreadPoolNumIdleThreadsin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getThreadPoolNumTasksPending
public int getThreadPoolNumTasksPending() throws java.sql.SQLException- Specified by:
getThreadPoolNumTasksPendingin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
sampleThreadPoolStackTraces
public java.lang.String sampleThreadPoolStackTraces() throws java.sql.SQLException- Specified by:
sampleThreadPoolStackTracesin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
sampleThreadPoolStatus
public java.lang.String sampleThreadPoolStatus() throws java.sql.SQLException- Specified by:
sampleThreadPoolStatusin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
softResetDefaultUser
public void softResetDefaultUser() throws java.sql.SQLException- Specified by:
softResetDefaultUserin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumConnections
public int getNumConnections(java.lang.String username, java.lang.String password) throws java.sql.SQLException- Specified by:
getNumConnectionsin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumIdleConnections
public int getNumIdleConnections(java.lang.String username, java.lang.String password) throws java.sql.SQLException- Specified by:
getNumIdleConnectionsin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumBusyConnections
public int getNumBusyConnections(java.lang.String username, java.lang.String password) throws java.sql.SQLException- Specified by:
getNumBusyConnectionsin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumUnclosedOrphanedConnections
public int getNumUnclosedOrphanedConnections(java.lang.String username, java.lang.String password) throws java.sql.SQLException- Specified by:
getNumUnclosedOrphanedConnectionsin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getEffectivePropertyCycle
public float getEffectivePropertyCycle(java.lang.String username, java.lang.String password) throws java.sql.SQLException- Specified by:
getEffectivePropertyCyclein interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
softReset
public void softReset(java.lang.String username, java.lang.String password) throws java.sql.SQLException- Specified by:
softResetin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumBusyConnectionsAllUsers
public int getNumBusyConnectionsAllUsers() throws java.sql.SQLException- Specified by:
getNumBusyConnectionsAllUsersin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumIdleConnectionsAllUsers
public int getNumIdleConnectionsAllUsers() throws java.sql.SQLException- Specified by:
getNumIdleConnectionsAllUsersin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumConnectionsAllUsers
public int getNumConnectionsAllUsers() throws java.sql.SQLException- Specified by:
getNumConnectionsAllUsersin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumUnclosedOrphanedConnectionsAllUsers
public int getNumUnclosedOrphanedConnectionsAllUsers() throws java.sql.SQLException- Specified by:
getNumUnclosedOrphanedConnectionsAllUsersin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
softResetAllUsers
public void softResetAllUsers() throws java.sql.SQLException- Specified by:
softResetAllUsersin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getNumUserPools
public int getNumUserPools() throws java.sql.SQLException- Specified by:
getNumUserPoolsin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
getAllUsers
public java.util.Collection getAllUsers() throws java.sql.SQLException- Specified by:
getAllUsersin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
hardReset
public void hardReset() throws java.sql.SQLException- Specified by:
hardResetin interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLException- Specified by:
closein interfacePooledDataSourceManagerMBean- Throws:
java.sql.SQLException
-
-