1 22 23 24 package com.mchange.v2.c3p0.management; 25 26 import java.sql.SQLException ; 27 import java.util.Collection ; 28 import com.mchange.v2.c3p0.PooledDataSource; 29 30 public class PooledDataSourceManager implements PooledDataSourceManagerMBean 31 { 32 PooledDataSource pds; 33 34 public PooledDataSourceManager( PooledDataSource pds ) 35 { this.pds = pds; } 36 37 public String getIdentityToken() 38 { return pds.getIdentityToken(); } 39 40 public String getDataSourceName() 41 { return pds.getDataSourceName(); } 42 43 public void setDataSourceName(String dataSourceName) 44 { pds.setDataSourceName( dataSourceName ); } 45 46 public int getNumConnectionsDefaultUser() throws SQLException 47 { return pds.getNumConnectionsDefaultUser(); } 48 49 public int getNumIdleConnectionsDefaultUser() throws SQLException 50 { return pds.getNumIdleConnectionsDefaultUser(); } 51 52 public int getNumBusyConnectionsDefaultUser() throws SQLException 53 { return pds.getNumBusyConnectionsDefaultUser(); } 54 55 public int getNumUnclosedOrphanedConnectionsDefaultUser() throws SQLException 56 { return pds.getNumUnclosedOrphanedConnectionsDefaultUser(); } 57 58 public float getEffectivePropertyCycleDefaultUser() throws SQLException 59 { return pds.getEffectivePropertyCycleDefaultUser(); } 60 61 public int getThreadPoolSize() throws SQLException 62 { return pds.getThreadPoolSize(); } 63 64 public int getThreadPoolNumActiveThreads() throws SQLException 65 { return pds.getThreadPoolNumActiveThreads(); } 66 67 public int getThreadPoolNumIdleThreads() throws SQLException 68 { return pds.getThreadPoolNumIdleThreads(); } 69 70 public int getThreadPoolNumTasksPending() throws SQLException 71 { return pds.getThreadPoolNumTasksPending(); } 72 73 public String sampleThreadPoolStackTraces() throws SQLException 74 { return pds.sampleThreadPoolStackTraces(); } 75 76 public String sampleThreadPoolStatus() throws SQLException 77 { return pds.sampleThreadPoolStatus(); } 78 79 public void softResetDefaultUser() throws SQLException 80 { pds.softResetDefaultUser(); } 81 82 public int getNumConnections(String username, String password) throws SQLException 83 { return pds.getNumConnections( username, password ); } 84 85 public int getNumIdleConnections(String username, String password) throws SQLException 86 { return pds.getNumIdleConnections( username, password ); } 87 88 public int getNumBusyConnections(String username, String password) throws SQLException 89 { return pds.getNumBusyConnections( username, password ); } 90 91 public int getNumUnclosedOrphanedConnections(String username, String password) throws SQLException 92 { return pds.getNumUnclosedOrphanedConnections( username, password ); } 93 94 public float getEffectivePropertyCycle(String username, String password) throws SQLException 95 { return pds.getEffectivePropertyCycle( username, password ); } 96 97 public void softReset(String username, String password) throws SQLException 98 { pds.softReset( username, password ); } 99 100 public int getNumBusyConnectionsAllUsers() throws SQLException 101 { return pds.getNumBusyConnectionsAllUsers(); } 102 103 public int getNumIdleConnectionsAllUsers() throws SQLException 104 { return pds.getNumIdleConnectionsAllUsers(); } 105 106 public int getNumConnectionsAllUsers() throws SQLException 107 { return pds.getNumConnectionsAllUsers(); } 108 109 public int getNumUnclosedOrphanedConnectionsAllUsers() throws SQLException 110 { return pds.getNumUnclosedOrphanedConnectionsAllUsers(); } 111 112 public void softResetAllUsers() throws SQLException 113 { pds.softResetAllUsers(); } 114 115 public int getNumUserPools() throws SQLException 116 { return pds.getNumUserPools(); } 117 118 public Collection getAllUsers() throws SQLException 119 { return pds.getAllUsers(); } 120 121 public void hardReset() throws SQLException 122 { pds.hardReset(); } 123 124 public void close() throws SQLException 125 { pds.close(); } 126 } 127 | Popular Tags |