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:
getIdentityToken
in interfacePooledDataSourceManagerMBean
-
getDataSourceName
public java.lang.String getDataSourceName()
- Specified by:
getDataSourceName
in interfacePooledDataSourceManagerMBean
-
setDataSourceName
public void setDataSourceName(java.lang.String dataSourceName)
- Specified by:
setDataSourceName
in interfacePooledDataSourceManagerMBean
-
getNumConnectionsDefaultUser
public int getNumConnectionsDefaultUser() throws java.sql.SQLException
- Specified by:
getNumConnectionsDefaultUser
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumIdleConnectionsDefaultUser
public int getNumIdleConnectionsDefaultUser() throws java.sql.SQLException
- Specified by:
getNumIdleConnectionsDefaultUser
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumBusyConnectionsDefaultUser
public int getNumBusyConnectionsDefaultUser() throws java.sql.SQLException
- Specified by:
getNumBusyConnectionsDefaultUser
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumUnclosedOrphanedConnectionsDefaultUser
public int getNumUnclosedOrphanedConnectionsDefaultUser() throws java.sql.SQLException
- Specified by:
getNumUnclosedOrphanedConnectionsDefaultUser
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getEffectivePropertyCycleDefaultUser
public float getEffectivePropertyCycleDefaultUser() throws java.sql.SQLException
- Specified by:
getEffectivePropertyCycleDefaultUser
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getThreadPoolSize
public int getThreadPoolSize() throws java.sql.SQLException
- Specified by:
getThreadPoolSize
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getThreadPoolNumActiveThreads
public int getThreadPoolNumActiveThreads() throws java.sql.SQLException
- Specified by:
getThreadPoolNumActiveThreads
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getThreadPoolNumIdleThreads
public int getThreadPoolNumIdleThreads() throws java.sql.SQLException
- Specified by:
getThreadPoolNumIdleThreads
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getThreadPoolNumTasksPending
public int getThreadPoolNumTasksPending() throws java.sql.SQLException
- Specified by:
getThreadPoolNumTasksPending
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
sampleThreadPoolStackTraces
public java.lang.String sampleThreadPoolStackTraces() throws java.sql.SQLException
- Specified by:
sampleThreadPoolStackTraces
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
sampleThreadPoolStatus
public java.lang.String sampleThreadPoolStatus() throws java.sql.SQLException
- Specified by:
sampleThreadPoolStatus
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
softResetDefaultUser
public void softResetDefaultUser() throws java.sql.SQLException
- Specified by:
softResetDefaultUser
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumConnections
public int getNumConnections(java.lang.String username, java.lang.String password) throws java.sql.SQLException
- Specified by:
getNumConnections
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumIdleConnections
public int getNumIdleConnections(java.lang.String username, java.lang.String password) throws java.sql.SQLException
- Specified by:
getNumIdleConnections
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumBusyConnections
public int getNumBusyConnections(java.lang.String username, java.lang.String password) throws java.sql.SQLException
- Specified by:
getNumBusyConnections
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumUnclosedOrphanedConnections
public int getNumUnclosedOrphanedConnections(java.lang.String username, java.lang.String password) throws java.sql.SQLException
- Specified by:
getNumUnclosedOrphanedConnections
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getEffectivePropertyCycle
public float getEffectivePropertyCycle(java.lang.String username, java.lang.String password) throws java.sql.SQLException
- Specified by:
getEffectivePropertyCycle
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
softReset
public void softReset(java.lang.String username, java.lang.String password) throws java.sql.SQLException
- Specified by:
softReset
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumBusyConnectionsAllUsers
public int getNumBusyConnectionsAllUsers() throws java.sql.SQLException
- Specified by:
getNumBusyConnectionsAllUsers
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumIdleConnectionsAllUsers
public int getNumIdleConnectionsAllUsers() throws java.sql.SQLException
- Specified by:
getNumIdleConnectionsAllUsers
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumConnectionsAllUsers
public int getNumConnectionsAllUsers() throws java.sql.SQLException
- Specified by:
getNumConnectionsAllUsers
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumUnclosedOrphanedConnectionsAllUsers
public int getNumUnclosedOrphanedConnectionsAllUsers() throws java.sql.SQLException
- Specified by:
getNumUnclosedOrphanedConnectionsAllUsers
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
softResetAllUsers
public void softResetAllUsers() throws java.sql.SQLException
- Specified by:
softResetAllUsers
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getNumUserPools
public int getNumUserPools() throws java.sql.SQLException
- Specified by:
getNumUserPools
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
getAllUsers
public java.util.Collection getAllUsers() throws java.sql.SQLException
- Specified by:
getAllUsers
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
hardReset
public void hardReset() throws java.sql.SQLException
- Specified by:
hardReset
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLException
- Specified by:
close
in interfacePooledDataSourceManagerMBean
- Throws:
java.sql.SQLException
-
-