Class C3P0PooledDataSource
java.lang.Object
com.mchange.v2.c3p0.jboss.C3P0PooledDataSource
- All Implemented Interfaces:
C3P0PooledDataSourceMBean
-
Constructor Summary
Constructors -
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) voidsetDataSourceName(String name) 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()
-
Constructor Details
-
C3P0PooledDataSource
public C3P0PooledDataSource()
-
-
Method Details
-
setJndiName
- Specified by:
setJndiNamein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getJndiName
- Specified by:
getJndiNamein interfaceC3P0PooledDataSourceMBean
-
getDescription
- Specified by:
getDescriptionin interfaceC3P0PooledDataSourceMBean
-
setDescription
- Specified by:
setDescriptionin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getDriverClass
- Specified by:
getDriverClassin interfaceC3P0PooledDataSourceMBean
-
setDriverClass
- Specified by:
setDriverClassin interfaceC3P0PooledDataSourceMBean- Throws:
PropertyVetoExceptionNamingException
-
getJdbcUrl
- Specified by:
getJdbcUrlin interfaceC3P0PooledDataSourceMBean
-
setJdbcUrl
- Specified by:
setJdbcUrlin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getUser
- Specified by:
getUserin interfaceC3P0PooledDataSourceMBean
-
setUser
- Specified by:
setUserin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getPassword
- Specified by:
getPasswordin interfaceC3P0PooledDataSourceMBean
-
setPassword
- Specified by:
setPasswordin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getCheckoutTimeout
public int getCheckoutTimeout()- Specified by:
getCheckoutTimeoutin interfaceC3P0PooledDataSourceMBean
-
setCheckoutTimeout
- Specified by:
setCheckoutTimeoutin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getConnectionIsValidTimeout
public int getConnectionIsValidTimeout()- Specified by:
getConnectionIsValidTimeoutin interfaceC3P0PooledDataSourceMBean
-
setConnectionIsValidTimeout
- Specified by:
setConnectionIsValidTimeoutin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getAcquireIncrement
public int getAcquireIncrement()- Specified by:
getAcquireIncrementin interfaceC3P0PooledDataSourceMBean
-
setAcquireIncrement
- Specified by:
setAcquireIncrementin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getAcquireRetryAttempts
public int getAcquireRetryAttempts()- Specified by:
getAcquireRetryAttemptsin interfaceC3P0PooledDataSourceMBean
-
setAcquireRetryAttempts
- Specified by:
setAcquireRetryAttemptsin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getAcquireRetryDelay
public int getAcquireRetryDelay()- Specified by:
getAcquireRetryDelayin interfaceC3P0PooledDataSourceMBean
-
setAcquireRetryDelay
- Specified by:
setAcquireRetryDelayin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
isAutoCommitOnClose
public boolean isAutoCommitOnClose()- Specified by:
isAutoCommitOnClosein interfaceC3P0PooledDataSourceMBean
-
setAutoCommitOnClose
- Specified by:
setAutoCommitOnClosein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
isCancelAutomaticallyClosedStatements
public boolean isCancelAutomaticallyClosedStatements()- Specified by:
isCancelAutomaticallyClosedStatementsin interfaceC3P0PooledDataSourceMBean
-
setCancelAutomaticallyClosedStatements
public void setCancelAutomaticallyClosedStatements(boolean cancelAutomaticallyClosedStatements) throws NamingException - Specified by:
setCancelAutomaticallyClosedStatementsin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getConnectionTesterClassName
- Specified by:
getConnectionTesterClassNamein interfaceC3P0PooledDataSourceMBean
-
setConnectionTesterClassName
public void setConnectionTesterClassName(String connectionTesterClassName) throws PropertyVetoException, NamingException - Specified by:
setConnectionTesterClassNamein interfaceC3P0PooledDataSourceMBean- Throws:
PropertyVetoExceptionNamingException
-
getTaskRunnerFactoryClassName
- Specified by:
getTaskRunnerFactoryClassNamein interfaceC3P0PooledDataSourceMBean
-
setTaskRunnerFactoryClassName
public void setTaskRunnerFactoryClassName(String taskRunnerFactoryClassName) throws PropertyVetoException, NamingException - Specified by:
setTaskRunnerFactoryClassNamein interfaceC3P0PooledDataSourceMBean- Throws:
PropertyVetoExceptionNamingException
-
getAutomaticTestTable
- Specified by:
getAutomaticTestTablein interfaceC3P0PooledDataSourceMBean
-
setAutomaticTestTable
- Specified by:
setAutomaticTestTablein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
isForceIgnoreUnresolvedTransactions
public boolean isForceIgnoreUnresolvedTransactions()- Specified by:
isForceIgnoreUnresolvedTransactionsin interfaceC3P0PooledDataSourceMBean
-
setForceIgnoreUnresolvedTransactions
public void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions) throws NamingException - Specified by:
setForceIgnoreUnresolvedTransactionsin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getIdleConnectionTestPeriod
public int getIdleConnectionTestPeriod()- Specified by:
getIdleConnectionTestPeriodin interfaceC3P0PooledDataSourceMBean
-
setIdleConnectionTestPeriod
- Specified by:
setIdleConnectionTestPeriodin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getInitialPoolSize
public int getInitialPoolSize()- Specified by:
getInitialPoolSizein interfaceC3P0PooledDataSourceMBean
-
setInitialPoolSize
- Specified by:
setInitialPoolSizein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getMaxIdleTime
public int getMaxIdleTime()- Specified by:
getMaxIdleTimein interfaceC3P0PooledDataSourceMBean
-
setMaxIdleTime
- Specified by:
setMaxIdleTimein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getMaxPoolSize
public int getMaxPoolSize()- Specified by:
getMaxPoolSizein interfaceC3P0PooledDataSourceMBean
-
setMaxPoolSize
- Specified by:
setMaxPoolSizein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getMaxStatements
public int getMaxStatements()- Specified by:
getMaxStatementsin interfaceC3P0PooledDataSourceMBean
-
setMaxStatements
- Specified by:
setMaxStatementsin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getMaxStatementsPerConnection
public int getMaxStatementsPerConnection()- Specified by:
getMaxStatementsPerConnectionin interfaceC3P0PooledDataSourceMBean
-
setMaxStatementsPerConnection
- Specified by:
setMaxStatementsPerConnectionin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getMinPoolSize
public int getMinPoolSize()- Specified by:
getMinPoolSizein interfaceC3P0PooledDataSourceMBean
-
setMinPoolSize
- Specified by:
setMinPoolSizein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getPropertyCycle
public int getPropertyCycle()- Specified by:
getPropertyCyclein interfaceC3P0PooledDataSourceMBean
-
setPropertyCycle
- Specified by:
setPropertyCyclein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
isBreakAfterAcquireFailure
public boolean isBreakAfterAcquireFailure()- Specified by:
isBreakAfterAcquireFailurein interfaceC3P0PooledDataSourceMBean
-
setBreakAfterAcquireFailure
- Specified by:
setBreakAfterAcquireFailurein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
isTestConnectionOnCheckout
public boolean isTestConnectionOnCheckout()- Specified by:
isTestConnectionOnCheckoutin interfaceC3P0PooledDataSourceMBean
-
setTestConnectionOnCheckout
- Specified by:
setTestConnectionOnCheckoutin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
isTestConnectionOnCheckin
public boolean isTestConnectionOnCheckin()- Specified by:
isTestConnectionOnCheckinin interfaceC3P0PooledDataSourceMBean
-
setTestConnectionOnCheckin
- Specified by:
setTestConnectionOnCheckinin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
isAttemptResurrectOnCheckin
public boolean isAttemptResurrectOnCheckin()- Specified by:
isAttemptResurrectOnCheckinin interfaceC3P0PooledDataSourceMBean
-
setAttemptResurrectOnCheckin
- Specified by:
setAttemptResurrectOnCheckinin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getPreferredTestQuery
- Specified by:
getPreferredTestQueryin interfaceC3P0PooledDataSourceMBean
-
setPreferredTestQuery
- Specified by:
setPreferredTestQueryin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getDataSourceName
-
setDataSourceName
- Throws:
NamingException
-
getNumHelperThreads
public int getNumHelperThreads()- Specified by:
getNumHelperThreadsin interfaceC3P0PooledDataSourceMBean
-
setNumHelperThreads
- Specified by:
setNumHelperThreadsin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getFactoryClassLocation
- Specified by:
getFactoryClassLocationin interfaceC3P0PooledDataSourceMBean
-
setFactoryClassLocation
- Specified by:
setFactoryClassLocationin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
getNumUserPools
- Specified by:
getNumUserPoolsin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumConnectionsDefaultUser
- Specified by:
getNumConnectionsDefaultUserin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumIdleConnectionsDefaultUser
- Specified by:
getNumIdleConnectionsDefaultUserin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumBusyConnectionsDefaultUser
- Specified by:
getNumBusyConnectionsDefaultUserin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumUnclosedOrphanedConnectionsDefaultUser
- Specified by:
getNumUnclosedOrphanedConnectionsDefaultUserin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumConnections
- Specified by:
getNumConnectionsin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumIdleConnections
- Specified by:
getNumIdleConnectionsin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumBusyConnections
- Specified by:
getNumBusyConnectionsin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumUnclosedOrphanedConnections
- Specified by:
getNumUnclosedOrphanedConnectionsin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumConnectionsAllUsers
- Specified by:
getNumConnectionsAllUsersin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumIdleConnectionsAllUsers
- Specified by:
getNumIdleConnectionsAllUsersin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumBusyConnectionsAllUsers
- Specified by:
getNumBusyConnectionsAllUsersin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getNumUnclosedOrphanedConnectionsAllUsers
- Specified by:
getNumUnclosedOrphanedConnectionsAllUsersin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
softResetDefaultUser
- Specified by:
softResetDefaultUserin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
softReset
- Specified by:
softResetin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
softResetAllUsers
- Specified by:
softResetAllUsersin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
hardReset
- Specified by:
hardResetin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
close
- Specified by:
closein interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
create
- Specified by:
createin interfaceC3P0PooledDataSourceMBean- Throws:
Exception
-
start
- Specified by:
startin interfaceC3P0PooledDataSourceMBean- Throws:
Exception
-
stop
public void stop()- Specified by:
stopin interfaceC3P0PooledDataSourceMBean
-
destroy
public void destroy()- Specified by:
destroyin interfaceC3P0PooledDataSourceMBean
-
getConnectionCustomizerClassName
- Specified by:
getConnectionCustomizerClassNamein interfaceC3P0PooledDataSourceMBean
-
getEffectivePropertyCycle
- Specified by:
getEffectivePropertyCyclein interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getEffectivePropertyCycleDefaultUser
- Specified by:
getEffectivePropertyCycleDefaultUserin interfaceC3P0PooledDataSourceMBean- Throws:
SQLException
-
getMaxAdministrativeTaskTime
public int getMaxAdministrativeTaskTime()- Specified by:
getMaxAdministrativeTaskTimein interfaceC3P0PooledDataSourceMBean
-
getMaxConnectionAge
public int getMaxConnectionAge()- Specified by:
getMaxConnectionAgein interfaceC3P0PooledDataSourceMBean
-
getMaxIdleTimeExcessConnections
public int getMaxIdleTimeExcessConnections()- Specified by:
getMaxIdleTimeExcessConnectionsin interfaceC3P0PooledDataSourceMBean
-
getUnreturnedConnectionTimeout
public int getUnreturnedConnectionTimeout()- Specified by:
getUnreturnedConnectionTimeoutin interfaceC3P0PooledDataSourceMBean
-
isDebugUnreturnedConnectionStackTraces
public boolean isDebugUnreturnedConnectionStackTraces()- Specified by:
isDebugUnreturnedConnectionStackTracesin interfaceC3P0PooledDataSourceMBean
-
isForceSynchronousCheckins
public boolean isForceSynchronousCheckins()- Specified by:
isForceSynchronousCheckinsin interfaceC3P0PooledDataSourceMBean
-
setConnectionCustomizerClassName
public void setConnectionCustomizerClassName(String connectionCustomizerClassName) throws NamingException - Specified by:
setConnectionCustomizerClassNamein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
setDebugUnreturnedConnectionStackTraces
public void setDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces) throws NamingException - Specified by:
setDebugUnreturnedConnectionStackTracesin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
setForceSynchronousCheckins
- Specified by:
setForceSynchronousCheckinsin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
setMaxAdministrativeTaskTime
- Specified by:
setMaxAdministrativeTaskTimein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
setMaxConnectionAge
- Specified by:
setMaxConnectionAgein interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
setMaxIdleTimeExcessConnections
public void setMaxIdleTimeExcessConnections(int maxIdleTimeExcessConnections) throws NamingException - Specified by:
setMaxIdleTimeExcessConnectionsin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-
setUnreturnedConnectionTimeout
- Specified by:
setUnreturnedConnectionTimeoutin interfaceC3P0PooledDataSourceMBean- Throws:
NamingException
-