1 22 23 24 package com.mchange.v2.c3p0.jboss; 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 public interface C3P0PooledDataSourceMBean 33 { 34 public void setJndiName(String jndiName) throws NamingException ; 36 37 public String getJndiName(); 38 39 public String getDescription(); 41 42 public void setDescription( String description ) throws NamingException ; 43 44 public String getDriverClass(); 45 46 public void setDriverClass( String driverClass ) throws PropertyVetoException , NamingException ; 47 48 public String getJdbcUrl(); 49 50 public void setJdbcUrl( String jdbcUrl ) throws NamingException ; 51 52 public String getUser(); 54 55 public void setUser( String user ) throws NamingException ; 56 57 public String getPassword(); 58 59 public void setPassword( String password ) throws NamingException ; 60 61 public int getUnreturnedConnectionTimeout(); 63 public void setUnreturnedConnectionTimeout(int unreturnedConnectionTimeout) throws NamingException ; 64 65 public boolean isDebugUnreturnedConnectionStackTraces(); 66 public void setDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces) throws NamingException ; 67 68 public String getConnectionCustomizerClassName(); 69 public void setConnectionCustomizerClassName( String connectionCustomizerClassName ) throws NamingException ; 70 71 public int getMaxConnectionAge(); 72 public void setMaxConnectionAge( int maxConnectionAge ) throws NamingException ; 73 74 public int getMaxIdleTimeExcessConnections(); 75 public void setMaxIdleTimeExcessConnections( int maxIdleTimeExcessConnections ) throws NamingException ; 76 77 public int getMaxAdministrativeTaskTime(); 78 public void setMaxAdministrativeTaskTime( int maxAdministrativeTaskTime ) throws NamingException ; 79 80 public int getCheckoutTimeout(); 81 public void setCheckoutTimeout( int checkoutTimeout ) throws NamingException ; 82 83 public int getAcquireIncrement(); 84 public void setAcquireIncrement( int acquireIncrement ) throws NamingException ; 85 86 public int getAcquireRetryAttempts(); 87 public void setAcquireRetryAttempts( int acquireRetryAttempts ) throws NamingException ; 88 89 public int getAcquireRetryDelay(); 90 public void setAcquireRetryDelay( int acquireRetryDelay ) throws NamingException ; 91 92 public boolean isAutoCommitOnClose(); 93 public void setAutoCommitOnClose( boolean autoCommitOnClose ) throws NamingException ; 94 95 public String getConnectionTesterClassName(); 96 public void setConnectionTesterClassName( String connectionTesterClassName ) throws PropertyVetoException , NamingException ; 97 98 public String getAutomaticTestTable(); 99 public void setAutomaticTestTable( String automaticTestTable ) throws NamingException ; 100 101 public boolean isForceIgnoreUnresolvedTransactions(); 102 public void setForceIgnoreUnresolvedTransactions( boolean forceIgnoreUnresolvedTransactions ) throws NamingException ; 103 104 public int getIdleConnectionTestPeriod(); 105 public void setIdleConnectionTestPeriod( int idleConnectionTestPeriod ) throws NamingException ; 106 107 public int getInitialPoolSize(); 108 public void setInitialPoolSize( int initialPoolSize ) throws NamingException ; 109 110 public int getMaxIdleTime(); 111 public void setMaxIdleTime( int maxIdleTime ) throws NamingException ; 112 113 public int getMaxPoolSize(); 114 public void setMaxPoolSize( int maxPoolSize ) throws NamingException ; 115 116 public int getMaxStatements(); 117 public void setMaxStatements( int maxStatements ) throws NamingException ; 118 119 public int getMaxStatementsPerConnection(); 120 public void setMaxStatementsPerConnection( int maxStatementsPerConnection ) throws NamingException ; 121 122 public int getMinPoolSize(); 123 public void setMinPoolSize( int minPoolSize ) throws NamingException ; 124 125 public int getPropertyCycle(); 126 public void setPropertyCycle( int propertyCycle ) throws NamingException ; 127 128 public boolean isBreakAfterAcquireFailure(); 129 public void setBreakAfterAcquireFailure( boolean breakAfterAcquireFailure ) throws NamingException ; 130 131 public boolean isTestConnectionOnCheckout(); 132 public void setTestConnectionOnCheckout( boolean testConnectionOnCheckout ) throws NamingException ; 133 134 public boolean isTestConnectionOnCheckin(); 135 public void setTestConnectionOnCheckin( boolean testConnectionOnCheckin ) throws NamingException ; 136 137 public boolean isUsesTraditionalReflectiveProxies(); 138 public void setUsesTraditionalReflectiveProxies( boolean usesTraditionalReflectiveProxies ) throws NamingException ; 139 140 public String getPreferredTestQuery(); 141 public void setPreferredTestQuery( String preferredTestQuery ) throws NamingException ; 142 143 public int getNumHelperThreads(); 145 public void setNumHelperThreads( int numHelperThreads ) throws NamingException ; 146 147 public String getFactoryClassLocation(); 149 public void setFactoryClassLocation( String factoryClassLocation ) throws NamingException ; 150 151 153 public int getNumUserPools() throws SQLException ; 154 155 public int getNumConnectionsDefaultUser() throws SQLException ; 156 public int getNumIdleConnectionsDefaultUser() throws SQLException ; 157 public int getNumBusyConnectionsDefaultUser() throws SQLException ; 158 public int getNumUnclosedOrphanedConnectionsDefaultUser() throws SQLException ; 159 160 public int getNumConnections(String username, String password) throws SQLException ; 161 public int getNumIdleConnections(String username, String password) throws SQLException ; 162 public int getNumBusyConnections(String username, String password) throws SQLException ; 163 public int getNumUnclosedOrphanedConnections(String username, String password) throws SQLException ; 164 public float getEffectivePropertyCycle(String username, String password) throws SQLException ; 165 166 public int getNumBusyConnectionsAllUsers() throws SQLException ; 167 public int getNumIdleConnectionsAllUsers() throws SQLException ; 168 public int getNumConnectionsAllUsers() throws SQLException ; 169 public int getNumUnclosedOrphanedConnectionsAllUsers() throws SQLException ; 170 public float getEffectivePropertyCycleDefaultUser() throws SQLException ; 171 172 public void softResetDefaultUser() throws SQLException ; 174 public void softReset(String username, String password) throws SQLException ; 175 public void softResetAllUsers() throws SQLException ; 176 public void hardReset() throws SQLException ; 177 public void close() throws SQLException ; 178 179 public void create() throws Exception ; 181 public void start() throws Exception ; 182 public void stop(); 183 public void destroy(); 184 } 185 | Popular Tags |