Interface C3P0PooledDataSourceMBean
- All Known Implementing Classes:
C3P0PooledDataSource
public interface C3P0PooledDataSourceMBean
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcreate()voiddestroy()intintintintintfloatgetEffectivePropertyCycle(String username, String password) floatintintintintintintintintintintintgetNumBusyConnections(String username, String password) intintintgetNumConnections(String username, String password) intintintintgetNumIdleConnections(String username, String password) intintintgetNumUnclosedOrphanedConnections(String username, String password) intintintintintgetUser()voidbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAcquireIncrement(int acquireIncrement) voidsetAcquireRetryAttempts(int acquireRetryAttempts) voidsetAcquireRetryDelay(int acquireRetryDelay) voidsetAttemptResurrectOnCheckin(boolean attemptResurrectOnCheckin) voidsetAutoCommitOnClose(boolean autoCommitOnClose) voidsetAutomaticTestTable(String automaticTestTable) voidsetBreakAfterAcquireFailure(boolean breakAfterAcquireFailure) voidsetCancelAutomaticallyClosedStatements(boolean cancelAutomaticallyClosedStatements) voidsetCheckoutTimeout(int checkoutTimeout) voidsetConnectionCustomizerClassName(String connectionCustomizerClassName) voidsetConnectionIsValidTimeout(int connectionIsValidTimeout) voidsetConnectionTesterClassName(String connectionTesterClassName) voidsetDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces) voidsetDescription(String description) voidsetDriverClass(String driverClass) voidsetFactoryClassLocation(String factoryClassLocation) voidsetForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions) voidsetForceSynchronousCheckins(boolean forceSynchronousCheckins) voidsetIdleConnectionTestPeriod(int idleConnectionTestPeriod) voidsetInitialPoolSize(int initialPoolSize) voidsetJdbcUrl(String jdbcUrl) voidsetJndiName(String jndiName) voidsetMaxAdministrativeTaskTime(int maxAdministrativeTaskTime) voidsetMaxConnectionAge(int maxConnectionAge) voidsetMaxIdleTime(int maxIdleTime) voidsetMaxIdleTimeExcessConnections(int maxIdleTimeExcessConnections) voidsetMaxPoolSize(int maxPoolSize) voidsetMaxStatements(int maxStatements) voidsetMaxStatementsPerConnection(int maxStatementsPerConnection) voidsetMinPoolSize(int minPoolSize) voidsetNumHelperThreads(int numHelperThreads) voidsetPassword(String password) voidsetPreferredTestQuery(String preferredTestQuery) voidsetPropertyCycle(int propertyCycle) voidsetTaskRunnerFactoryClassName(String taskRunnerFactoryClassName) voidsetTestConnectionOnCheckin(boolean testConnectionOnCheckin) voidsetTestConnectionOnCheckout(boolean testConnectionOnCheckout) voidsetUnreturnedConnectionTimeout(int unreturnedConnectionTimeout) voidvoidvoidvoidvoidstart()voidstop()
-
Method Details
-
setJndiName
- Throws:
NamingException
-
getJndiName
String getJndiName() -
getDescription
String getDescription() -
setDescription
- Throws:
NamingException
-
getDriverClass
String getDriverClass() -
setDriverClass
- Throws:
PropertyVetoExceptionNamingException
-
getJdbcUrl
String getJdbcUrl() -
setJdbcUrl
- Throws:
NamingException
-
getUser
String getUser() -
setUser
- Throws:
NamingException
-
getPassword
String getPassword() -
setPassword
- Throws:
NamingException
-
getUnreturnedConnectionTimeout
int getUnreturnedConnectionTimeout() -
setUnreturnedConnectionTimeout
- Throws:
NamingException
-
isDebugUnreturnedConnectionStackTraces
boolean isDebugUnreturnedConnectionStackTraces() -
setDebugUnreturnedConnectionStackTraces
void setDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces) throws NamingException - Throws:
NamingException
-
isForceSynchronousCheckins
boolean isForceSynchronousCheckins() -
setForceSynchronousCheckins
- Throws:
NamingException
-
getConnectionCustomizerClassName
String getConnectionCustomizerClassName() -
setConnectionCustomizerClassName
- Throws:
NamingException
-
getMaxConnectionAge
int getMaxConnectionAge() -
setMaxConnectionAge
- Throws:
NamingException
-
getMaxIdleTimeExcessConnections
int getMaxIdleTimeExcessConnections() -
setMaxIdleTimeExcessConnections
- Throws:
NamingException
-
getMaxAdministrativeTaskTime
int getMaxAdministrativeTaskTime() -
setMaxAdministrativeTaskTime
- Throws:
NamingException
-
getCheckoutTimeout
int getCheckoutTimeout() -
setCheckoutTimeout
- Throws:
NamingException
-
getConnectionIsValidTimeout
int getConnectionIsValidTimeout() -
setConnectionIsValidTimeout
- Throws:
NamingException
-
getAcquireIncrement
int getAcquireIncrement() -
setAcquireIncrement
- Throws:
NamingException
-
getAcquireRetryAttempts
int getAcquireRetryAttempts() -
setAcquireRetryAttempts
- Throws:
NamingException
-
getAcquireRetryDelay
int getAcquireRetryDelay() -
setAcquireRetryDelay
- Throws:
NamingException
-
isAutoCommitOnClose
boolean isAutoCommitOnClose() -
setAutoCommitOnClose
- Throws:
NamingException
-
isCancelAutomaticallyClosedStatements
boolean isCancelAutomaticallyClosedStatements() -
setCancelAutomaticallyClosedStatements
void setCancelAutomaticallyClosedStatements(boolean cancelAutomaticallyClosedStatements) throws NamingException - Throws:
NamingException
-
getConnectionTesterClassName
String getConnectionTesterClassName() -
setConnectionTesterClassName
void setConnectionTesterClassName(String connectionTesterClassName) throws PropertyVetoException, NamingException - Throws:
PropertyVetoExceptionNamingException
-
getTaskRunnerFactoryClassName
String getTaskRunnerFactoryClassName() -
setTaskRunnerFactoryClassName
void setTaskRunnerFactoryClassName(String taskRunnerFactoryClassName) throws PropertyVetoException, NamingException - Throws:
PropertyVetoExceptionNamingException
-
getAutomaticTestTable
String getAutomaticTestTable() -
setAutomaticTestTable
- Throws:
NamingException
-
isForceIgnoreUnresolvedTransactions
boolean isForceIgnoreUnresolvedTransactions() -
setForceIgnoreUnresolvedTransactions
void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions) throws NamingException - Throws:
NamingException
-
getIdleConnectionTestPeriod
int getIdleConnectionTestPeriod() -
setIdleConnectionTestPeriod
- Throws:
NamingException
-
getInitialPoolSize
int getInitialPoolSize() -
setInitialPoolSize
- Throws:
NamingException
-
getMaxIdleTime
int getMaxIdleTime() -
setMaxIdleTime
- Throws:
NamingException
-
getMaxPoolSize
int getMaxPoolSize() -
setMaxPoolSize
- Throws:
NamingException
-
getMaxStatements
int getMaxStatements() -
setMaxStatements
- Throws:
NamingException
-
getMaxStatementsPerConnection
int getMaxStatementsPerConnection() -
setMaxStatementsPerConnection
- Throws:
NamingException
-
getMinPoolSize
int getMinPoolSize() -
setMinPoolSize
- Throws:
NamingException
-
getPropertyCycle
int getPropertyCycle() -
setPropertyCycle
- Throws:
NamingException
-
isBreakAfterAcquireFailure
boolean isBreakAfterAcquireFailure() -
setBreakAfterAcquireFailure
- Throws:
NamingException
-
isTestConnectionOnCheckout
boolean isTestConnectionOnCheckout() -
setTestConnectionOnCheckout
- Throws:
NamingException
-
isTestConnectionOnCheckin
boolean isTestConnectionOnCheckin() -
setTestConnectionOnCheckin
- Throws:
NamingException
-
isAttemptResurrectOnCheckin
boolean isAttemptResurrectOnCheckin() -
setAttemptResurrectOnCheckin
- Throws:
NamingException
-
getPreferredTestQuery
String getPreferredTestQuery() -
setPreferredTestQuery
- Throws:
NamingException
-
getNumHelperThreads
int getNumHelperThreads() -
setNumHelperThreads
- Throws:
NamingException
-
getFactoryClassLocation
String getFactoryClassLocation() -
setFactoryClassLocation
- Throws:
NamingException
-
getNumUserPools
- Throws:
SQLException
-
getNumConnectionsDefaultUser
- Throws:
SQLException
-
getNumIdleConnectionsDefaultUser
- Throws:
SQLException
-
getNumBusyConnectionsDefaultUser
- Throws:
SQLException
-
getNumUnclosedOrphanedConnectionsDefaultUser
- Throws:
SQLException
-
getNumConnections
- Throws:
SQLException
-
getNumIdleConnections
- Throws:
SQLException
-
getNumBusyConnections
- Throws:
SQLException
-
getNumUnclosedOrphanedConnections
- Throws:
SQLException
-
getEffectivePropertyCycle
- Throws:
SQLException
-
getNumBusyConnectionsAllUsers
- Throws:
SQLException
-
getNumIdleConnectionsAllUsers
- Throws:
SQLException
-
getNumConnectionsAllUsers
- Throws:
SQLException
-
getNumUnclosedOrphanedConnectionsAllUsers
- Throws:
SQLException
-
getEffectivePropertyCycleDefaultUser
- Throws:
SQLException
-
softResetDefaultUser
- Throws:
SQLException
-
softReset
- Throws:
SQLException
-
softResetAllUsers
- Throws:
SQLException
-
hardReset
- Throws:
SQLException
-
close
- Throws:
SQLException
-
create
-
start
-
stop
void stop() -
destroy
void destroy()
-