Package com.mchange.v2.c3p0.jboss
Class C3P0PooledDataSource
java.lang.Object
com.mchange.v2.c3p0.jboss.C3P0PooledDataSource
- All Implemented Interfaces:
C3P0PooledDataSourceMBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
create()
void
destroy()
int
int
int
int
float
getEffectivePropertyCycle
(String username, String password) float
int
int
int
int
int
int
int
int
int
int
int
getNumBusyConnections
(String username, String password) int
int
int
getNumConnections
(String username, String password) int
int
int
int
getNumIdleConnections
(String username, String password) int
int
int
getNumUnclosedOrphanedConnections
(String username, String password) int
int
int
int
int
getUser()
void
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAcquireIncrement
(int acquireIncrement) void
setAcquireRetryAttempts
(int acquireRetryAttempts) void
setAcquireRetryDelay
(int acquireRetryDelay) void
setAutoCommitOnClose
(boolean autoCommitOnClose) void
setAutomaticTestTable
(String automaticTestTable) void
setBreakAfterAcquireFailure
(boolean breakAfterAcquireFailure) void
setCheckoutTimeout
(int checkoutTimeout) void
setConnectionCustomizerClassName
(String connectionCustomizerClassName) void
setConnectionTesterClassName
(String connectionTesterClassName) void
setDataSourceName
(String name) void
setDebugUnreturnedConnectionStackTraces
(boolean debugUnreturnedConnectionStackTraces) void
setDescription
(String description) void
setDriverClass
(String driverClass) void
setFactoryClassLocation
(String factoryClassLocation) void
setForceIgnoreUnresolvedTransactions
(boolean forceIgnoreUnresolvedTransactions) void
setForceSynchronousCheckins
(boolean forceSynchronousCheckins) void
setIdleConnectionTestPeriod
(int idleConnectionTestPeriod) void
setInitialPoolSize
(int initialPoolSize) void
setJdbcUrl
(String jdbcUrl) void
setJndiName
(String jndiName) void
setMaxAdministrativeTaskTime
(int maxAdministrativeTaskTime) void
setMaxConnectionAge
(int maxConnectionAge) void
setMaxIdleTime
(int maxIdleTime) void
setMaxIdleTimeExcessConnections
(int maxIdleTimeExcessConnections) void
setMaxPoolSize
(int maxPoolSize) void
setMaxStatements
(int maxStatements) void
setMaxStatementsPerConnection
(int maxStatementsPerConnection) void
setMinPoolSize
(int minPoolSize) void
setNumHelperThreads
(int numHelperThreads) void
setPassword
(String password) void
setPreferredTestQuery
(String preferredTestQuery) void
setPropertyCycle
(int propertyCycle) void
setTestConnectionOnCheckin
(boolean testConnectionOnCheckin) void
setTestConnectionOnCheckout
(boolean testConnectionOnCheckout) void
setUnreturnedConnectionTimeout
(int unreturnedConnectionTimeout) void
void
setUsesTraditionalReflectiveProxies
(boolean usesTraditionalReflectiveProxies) void
void
void
void
start()
void
stop()
-
Constructor Details
-
C3P0PooledDataSource
public C3P0PooledDataSource()
-
-
Method Details
-
setJndiName
- Specified by:
setJndiName
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getJndiName
- Specified by:
getJndiName
in interfaceC3P0PooledDataSourceMBean
-
getDescription
- Specified by:
getDescription
in interfaceC3P0PooledDataSourceMBean
-
setDescription
- Specified by:
setDescription
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getDriverClass
- Specified by:
getDriverClass
in interfaceC3P0PooledDataSourceMBean
-
setDriverClass
- Specified by:
setDriverClass
in interfaceC3P0PooledDataSourceMBean
- Throws:
PropertyVetoException
NamingException
-
getJdbcUrl
- Specified by:
getJdbcUrl
in interfaceC3P0PooledDataSourceMBean
-
setJdbcUrl
- Specified by:
setJdbcUrl
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getUser
- Specified by:
getUser
in interfaceC3P0PooledDataSourceMBean
-
setUser
- Specified by:
setUser
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getPassword
- Specified by:
getPassword
in interfaceC3P0PooledDataSourceMBean
-
setPassword
- Specified by:
setPassword
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getCheckoutTimeout
public int getCheckoutTimeout()- Specified by:
getCheckoutTimeout
in interfaceC3P0PooledDataSourceMBean
-
setCheckoutTimeout
- Specified by:
setCheckoutTimeout
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getAcquireIncrement
public int getAcquireIncrement()- Specified by:
getAcquireIncrement
in interfaceC3P0PooledDataSourceMBean
-
setAcquireIncrement
- Specified by:
setAcquireIncrement
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getAcquireRetryAttempts
public int getAcquireRetryAttempts()- Specified by:
getAcquireRetryAttempts
in interfaceC3P0PooledDataSourceMBean
-
setAcquireRetryAttempts
- Specified by:
setAcquireRetryAttempts
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getAcquireRetryDelay
public int getAcquireRetryDelay()- Specified by:
getAcquireRetryDelay
in interfaceC3P0PooledDataSourceMBean
-
setAcquireRetryDelay
- Specified by:
setAcquireRetryDelay
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
isAutoCommitOnClose
public boolean isAutoCommitOnClose()- Specified by:
isAutoCommitOnClose
in interfaceC3P0PooledDataSourceMBean
-
setAutoCommitOnClose
- Specified by:
setAutoCommitOnClose
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getConnectionTesterClassName
- Specified by:
getConnectionTesterClassName
in interfaceC3P0PooledDataSourceMBean
-
setConnectionTesterClassName
public void setConnectionTesterClassName(String connectionTesterClassName) throws PropertyVetoException, NamingException - Specified by:
setConnectionTesterClassName
in interfaceC3P0PooledDataSourceMBean
- Throws:
PropertyVetoException
NamingException
-
getAutomaticTestTable
- Specified by:
getAutomaticTestTable
in interfaceC3P0PooledDataSourceMBean
-
setAutomaticTestTable
- Specified by:
setAutomaticTestTable
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
isForceIgnoreUnresolvedTransactions
public boolean isForceIgnoreUnresolvedTransactions()- Specified by:
isForceIgnoreUnresolvedTransactions
in interfaceC3P0PooledDataSourceMBean
-
setForceIgnoreUnresolvedTransactions
public void setForceIgnoreUnresolvedTransactions(boolean forceIgnoreUnresolvedTransactions) throws NamingException - Specified by:
setForceIgnoreUnresolvedTransactions
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getIdleConnectionTestPeriod
public int getIdleConnectionTestPeriod()- Specified by:
getIdleConnectionTestPeriod
in interfaceC3P0PooledDataSourceMBean
-
setIdleConnectionTestPeriod
- Specified by:
setIdleConnectionTestPeriod
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getInitialPoolSize
public int getInitialPoolSize()- Specified by:
getInitialPoolSize
in interfaceC3P0PooledDataSourceMBean
-
setInitialPoolSize
- Specified by:
setInitialPoolSize
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getMaxIdleTime
public int getMaxIdleTime()- Specified by:
getMaxIdleTime
in interfaceC3P0PooledDataSourceMBean
-
setMaxIdleTime
- Specified by:
setMaxIdleTime
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getMaxPoolSize
public int getMaxPoolSize()- Specified by:
getMaxPoolSize
in interfaceC3P0PooledDataSourceMBean
-
setMaxPoolSize
- Specified by:
setMaxPoolSize
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getMaxStatements
public int getMaxStatements()- Specified by:
getMaxStatements
in interfaceC3P0PooledDataSourceMBean
-
setMaxStatements
- Specified by:
setMaxStatements
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getMaxStatementsPerConnection
public int getMaxStatementsPerConnection()- Specified by:
getMaxStatementsPerConnection
in interfaceC3P0PooledDataSourceMBean
-
setMaxStatementsPerConnection
- Specified by:
setMaxStatementsPerConnection
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getMinPoolSize
public int getMinPoolSize()- Specified by:
getMinPoolSize
in interfaceC3P0PooledDataSourceMBean
-
setMinPoolSize
- Specified by:
setMinPoolSize
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getPropertyCycle
public int getPropertyCycle()- Specified by:
getPropertyCycle
in interfaceC3P0PooledDataSourceMBean
-
setPropertyCycle
- Specified by:
setPropertyCycle
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
isBreakAfterAcquireFailure
public boolean isBreakAfterAcquireFailure()- Specified by:
isBreakAfterAcquireFailure
in interfaceC3P0PooledDataSourceMBean
-
setBreakAfterAcquireFailure
- Specified by:
setBreakAfterAcquireFailure
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
isTestConnectionOnCheckout
public boolean isTestConnectionOnCheckout()- Specified by:
isTestConnectionOnCheckout
in interfaceC3P0PooledDataSourceMBean
-
setTestConnectionOnCheckout
- Specified by:
setTestConnectionOnCheckout
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
isTestConnectionOnCheckin
public boolean isTestConnectionOnCheckin()- Specified by:
isTestConnectionOnCheckin
in interfaceC3P0PooledDataSourceMBean
-
setTestConnectionOnCheckin
- Specified by:
setTestConnectionOnCheckin
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
isUsesTraditionalReflectiveProxies
public boolean isUsesTraditionalReflectiveProxies()- Specified by:
isUsesTraditionalReflectiveProxies
in interfaceC3P0PooledDataSourceMBean
-
setUsesTraditionalReflectiveProxies
public void setUsesTraditionalReflectiveProxies(boolean usesTraditionalReflectiveProxies) throws NamingException - Specified by:
setUsesTraditionalReflectiveProxies
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getPreferredTestQuery
- Specified by:
getPreferredTestQuery
in interfaceC3P0PooledDataSourceMBean
-
setPreferredTestQuery
- Specified by:
setPreferredTestQuery
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getDataSourceName
-
setDataSourceName
- Throws:
NamingException
-
getNumHelperThreads
public int getNumHelperThreads()- Specified by:
getNumHelperThreads
in interfaceC3P0PooledDataSourceMBean
-
setNumHelperThreads
- Specified by:
setNumHelperThreads
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getFactoryClassLocation
- Specified by:
getFactoryClassLocation
in interfaceC3P0PooledDataSourceMBean
-
setFactoryClassLocation
- Specified by:
setFactoryClassLocation
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
getNumUserPools
- Specified by:
getNumUserPools
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumConnectionsDefaultUser
- Specified by:
getNumConnectionsDefaultUser
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumIdleConnectionsDefaultUser
- Specified by:
getNumIdleConnectionsDefaultUser
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumBusyConnectionsDefaultUser
- Specified by:
getNumBusyConnectionsDefaultUser
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumUnclosedOrphanedConnectionsDefaultUser
- Specified by:
getNumUnclosedOrphanedConnectionsDefaultUser
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumConnections
- Specified by:
getNumConnections
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumIdleConnections
- Specified by:
getNumIdleConnections
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumBusyConnections
- Specified by:
getNumBusyConnections
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumUnclosedOrphanedConnections
- Specified by:
getNumUnclosedOrphanedConnections
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumConnectionsAllUsers
- Specified by:
getNumConnectionsAllUsers
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumIdleConnectionsAllUsers
- Specified by:
getNumIdleConnectionsAllUsers
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumBusyConnectionsAllUsers
- Specified by:
getNumBusyConnectionsAllUsers
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getNumUnclosedOrphanedConnectionsAllUsers
- Specified by:
getNumUnclosedOrphanedConnectionsAllUsers
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
softResetDefaultUser
- Specified by:
softResetDefaultUser
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
softReset
- Specified by:
softReset
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
softResetAllUsers
- Specified by:
softResetAllUsers
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
hardReset
- Specified by:
hardReset
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
close
- Specified by:
close
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
create
- Specified by:
create
in interfaceC3P0PooledDataSourceMBean
- Throws:
Exception
-
start
- Specified by:
start
in interfaceC3P0PooledDataSourceMBean
- Throws:
Exception
-
stop
public void stop()- Specified by:
stop
in interfaceC3P0PooledDataSourceMBean
-
destroy
public void destroy()- Specified by:
destroy
in interfaceC3P0PooledDataSourceMBean
-
getConnectionCustomizerClassName
- Specified by:
getConnectionCustomizerClassName
in interfaceC3P0PooledDataSourceMBean
-
getEffectivePropertyCycle
- Specified by:
getEffectivePropertyCycle
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getEffectivePropertyCycleDefaultUser
- Specified by:
getEffectivePropertyCycleDefaultUser
in interfaceC3P0PooledDataSourceMBean
- Throws:
SQLException
-
getMaxAdministrativeTaskTime
public int getMaxAdministrativeTaskTime()- Specified by:
getMaxAdministrativeTaskTime
in interfaceC3P0PooledDataSourceMBean
-
getMaxConnectionAge
public int getMaxConnectionAge()- Specified by:
getMaxConnectionAge
in interfaceC3P0PooledDataSourceMBean
-
getMaxIdleTimeExcessConnections
public int getMaxIdleTimeExcessConnections()- Specified by:
getMaxIdleTimeExcessConnections
in interfaceC3P0PooledDataSourceMBean
-
getUnreturnedConnectionTimeout
public int getUnreturnedConnectionTimeout()- Specified by:
getUnreturnedConnectionTimeout
in interfaceC3P0PooledDataSourceMBean
-
isDebugUnreturnedConnectionStackTraces
public boolean isDebugUnreturnedConnectionStackTraces()- Specified by:
isDebugUnreturnedConnectionStackTraces
in interfaceC3P0PooledDataSourceMBean
-
isForceSynchronousCheckins
public boolean isForceSynchronousCheckins()- Specified by:
isForceSynchronousCheckins
in interfaceC3P0PooledDataSourceMBean
-
setConnectionCustomizerClassName
public void setConnectionCustomizerClassName(String connectionCustomizerClassName) throws NamingException - Specified by:
setConnectionCustomizerClassName
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
setDebugUnreturnedConnectionStackTraces
public void setDebugUnreturnedConnectionStackTraces(boolean debugUnreturnedConnectionStackTraces) throws NamingException - Specified by:
setDebugUnreturnedConnectionStackTraces
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
setForceSynchronousCheckins
- Specified by:
setForceSynchronousCheckins
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
setMaxAdministrativeTaskTime
- Specified by:
setMaxAdministrativeTaskTime
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
setMaxConnectionAge
- Specified by:
setMaxConnectionAge
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
setMaxIdleTimeExcessConnections
public void setMaxIdleTimeExcessConnections(int maxIdleTimeExcessConnections) throws NamingException - Specified by:
setMaxIdleTimeExcessConnections
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-
setUnreturnedConnectionTimeout
- Specified by:
setUnreturnedConnectionTimeout
in interfaceC3P0PooledDataSourceMBean
- Throws:
NamingException
-