1 22 23 24 package com.mchange.v2.c3p0.mbean; 25 26 import com.mchange.v2.c3p0.*; 27 import java.beans.PropertyVetoException ; 28 import java.sql.SQLException ; 29 import java.util.Properties ; 30 import javax.naming.NamingException ; 31 32 35 public interface C3P0PooledDataSourceMBean 36 { 37 public void setJndiName(String jndiName) throws NamingException ; 39 40 public String getJndiName(); 41 42 public String getDescription(); 44 45 public void setDescription( String description ) throws NamingException ; 46 47 public String getDriverClass(); 48 49 public void setDriverClass( String driverClass ) throws PropertyVetoException , NamingException ; 50 51 public String getJdbcUrl(); 52 53 public void setJdbcUrl( String jdbcUrl ) throws NamingException ; 54 55 public String getUser(); 57 58 public void setUser( String user ) throws NamingException ; 59 60 public String getPassword(); 61 62 public void setPassword( String password ) throws NamingException ; 63 64 public int getCheckoutTimeout(); 66 67 public void setCheckoutTimeout( int checkoutTimeout ) throws NamingException ; 68 69 public int getAcquireIncrement(); 70 71 public void setAcquireIncrement( int acquireIncrement ) throws NamingException ; 72 73 public int getAcquireRetryAttempts(); 74 75 public void setAcquireRetryAttempts( int acquireRetryAttempts ) throws NamingException ; 76 77 public int getAcquireRetryDelay(); 78 79 public void setAcquireRetryDelay( int acquireRetryDelay ) throws NamingException ; 80 81 public boolean isAutoCommitOnClose(); 82 83 public void setAutoCommitOnClose( boolean autoCommitOnClose ) throws NamingException ; 84 85 public String getConnectionTesterClassName(); 86 87 public void setConnectionTesterClassName( String connectionTesterClassName ) throws PropertyVetoException , NamingException ; 88 89 public String getAutomaticTestTable(); 90 91 public void setAutomaticTestTable( String automaticTestTable ) throws NamingException ; 92 93 public boolean isForceIgnoreUnresolvedTransactions(); 94 95 public void setForceIgnoreUnresolvedTransactions( boolean forceIgnoreUnresolvedTransactions ) throws NamingException ; 96 97 public int getIdleConnectionTestPeriod(); 98 99 public void setIdleConnectionTestPeriod( int idleConnectionTestPeriod ) throws NamingException ; 100 101 public int getInitialPoolSize(); 102 103 public void setInitialPoolSize( int initialPoolSize ) throws NamingException ; 104 105 public int getMaxIdleTime(); 106 107 public void setMaxIdleTime( int maxIdleTime ) throws NamingException ; 108 109 public int getMaxPoolSize(); 110 111 public void setMaxPoolSize( int maxPoolSize ) throws NamingException ; 112 113 public int getMaxStatements(); 114 115 public void setMaxStatements( int maxStatements ) throws NamingException ; 116 117 public int getMaxStatementsPerConnection(); 118 119 public void setMaxStatementsPerConnection( int maxStatementsPerConnection ) throws NamingException ; 120 121 public int getMinPoolSize(); 122 123 public void setMinPoolSize( int minPoolSize ) throws NamingException ; 124 125 public int getPropertyCycle(); 126 127 public void setPropertyCycle( int propertyCycle ) throws NamingException ; 128 129 public boolean isBreakAfterAcquireFailure(); 130 131 public void setBreakAfterAcquireFailure( boolean breakAfterAcquireFailure ) throws NamingException ; 132 133 public boolean isTestConnectionOnCheckout(); 134 135 public void setTestConnectionOnCheckout( boolean testConnectionOnCheckout ) throws NamingException ; 136 137 public boolean isTestConnectionOnCheckin(); 138 139 public void setTestConnectionOnCheckin( boolean testConnectionOnCheckin ) throws NamingException ; 140 141 public boolean isUsesTraditionalReflectiveProxies(); 142 143 public void setUsesTraditionalReflectiveProxies( boolean usesTraditionalReflectiveProxies ) throws NamingException ; 144 145 public String getPreferredTestQuery(); 146 147 public void setPreferredTestQuery( String preferredTestQuery ) throws NamingException ; 148 149 public int getNumHelperThreads(); 151 152 public void setNumHelperThreads( int numHelperThreads ) throws NamingException ; 153 154 public String getFactoryClassLocation(); 156 157 public void setFactoryClassLocation( String factoryClassLocation ) throws NamingException ; 158 159 161 public int getNumUserPools() throws SQLException ; 162 163 public int getNumConnectionsDefaultUser() throws SQLException ; 164 public int getNumIdleConnectionsDefaultUser() throws SQLException ; 165 public int getNumBusyConnectionsDefaultUser() throws SQLException ; 166 public int getNumUnclosedOrphanedConnectionsDefaultUser() throws SQLException ; 167 168 public int getNumConnections(String username, String password) throws SQLException ; 169 public int getNumIdleConnections(String username, String password) throws SQLException ; 170 public int getNumBusyConnections(String username, String password) throws SQLException ; 171 public int getNumUnclosedOrphanedConnections(String username, String password) throws SQLException ; 172 173 public int getNumBusyConnectionsAllUsers() throws SQLException ; 174 public int getNumIdleConnectionsAllUsers() throws SQLException ; 175 public int getNumConnectionsAllUsers() throws SQLException ; 176 public int getNumUnclosedOrphanedConnectionsAllUsers() throws SQLException ; 177 178 public void softResetDefaultUser() throws SQLException ; 180 public void softReset(String username, String password) throws SQLException ; 181 public void softResetAllUsers() throws SQLException ; 182 public void hardReset() throws SQLException ; 183 public void close() throws SQLException ; 184 185 public void create() throws Exception ; 187 public void start() throws Exception ; 188 public void stop(); 189 public void destroy(); 190 } 191 | Popular Tags |