org.logicalcobwebs.proxool

Class ProxoolDataSource

Implemented Interfaces:
DataSource, ObjectFactory

public class ProxoolDataSource
extends java.lang.Object
implements DataSource, ObjectFactory

The Proxool DataSource implementation. Supports three modes of configuration: TODO - expand
Version:
$Revision: 1.11 $, $Date: 2007/12/14 23:03:28 $
Authors:
bill
$Author: billhorsman $ (current maintainer)
Since:
Proxool 0.9

Constructor Summary

ProxoolDataSource()
ProxoolDataSource(String alias)

Method Summary

String
getAlias()
Connection
getConnection()
Connection
getConnection(String s, String s1)
String
getDriver()
String
getDriverUrl()
String
getFatalSqlExceptionWrapperClass()
String
getFatalSqlExceptionsAsString()
long
getHouseKeepingSleepTime()
String
getHouseKeepingTestSql()
String
getJmxAgentId()
PrintWriter
getLogWriter()
int
getLoginTimeout()
long
getMaximumActiveTime()
int
getMaximumConnectionCount()
long
getMaximumConnectionLifetime()
int
getMinimumConnectionCount()
Object
getObjectInstance(Object refObject, Name name, Context context, Hashtable hashtable)
long
getOverloadWithoutRefusalLifetime()
String
getPassword()
int
getPrototypeCount()
long
getRecentlyStartedThreshold()
int
getSimultaneousBuildThrottle()
String
getStatistics()
String
getStatisticsLogLevel()
String
getUser()
boolean
isJmx()
boolean
isTestAfterUse()
boolean
isTestBeforeUse()
boolean
isTrace()
boolean
isVerbose()
void
setAlias(String alias)
void
setDelegateProperties(String properties)
Set any property that should be handed to the delegate driver.
void
setDriver(String driver)
void
setDriverUrl(String url)
void
setFatalSqlExceptionWrapperClass(String fatalSqlExceptionWrapperClass)
void
setFatalSqlExceptionsAsString(String fatalSqlExceptionsAsString)
void
setHouseKeepingSleepTime(int houseKeepingSleepTime)
void
setHouseKeepingTestSql(String houseKeepingTestSql)
void
setJmx(boolean jmx)
void
setJmxAgentId(String jmxAgentId)
void
setLogWriter(PrintWriter logWriter)
void
setLoginTimeout(int loginTimeout)
void
setMaximumActiveTime(long maximumActiveTime)
void
setMaximumConnectionCount(int maximumConnectionCount)
void
setMaximumConnectionLifetime(int maximumConnectionLifetime)
void
setMinimumConnectionCount(int minimumConnectionCount)
void
setOverloadWithoutRefusalLifetime(int overloadWithoutRefusalLifetime)
void
setPassword(String password)
void
setPrototypeCount(int prototypeCount)
void
setRecentlyStartedThreshold(int recentlyStartedThreshold)
void
setSimultaneousBuildThrottle(int simultaneousBuildThrottle)
void
setStatistics(String statistics)
void
setStatisticsLogLevel(String statisticsLogLevel)
void
setTestAfterUse(boolean testAfterUse)
void
setTestBeforeUse(boolean testBeforeUse)
void
setTrace(boolean trace)
void
setUser(String user)
void
setVerbose(boolean verbose)

Constructor Details

ProxoolDataSource

public ProxoolDataSource()

ProxoolDataSource

public ProxoolDataSource(String alias)

Method Details

getAlias

public String getAlias()

getConnection

public Connection getConnection()
            throws SQLException
See Also:
javax.sql.DataSource.getConnection()

getConnection

public Connection getConnection(String s,
                                String s1)
            throws SQLException

getDriver

public String getDriver()

getDriverUrl

public String getDriverUrl()

getFatalSqlExceptionWrapperClass

public String getFatalSqlExceptionWrapperClass()

getFatalSqlExceptionsAsString

public String getFatalSqlExceptionsAsString()

getHouseKeepingSleepTime

public long getHouseKeepingSleepTime()

getHouseKeepingTestSql

public String getHouseKeepingTestSql()

getJmxAgentId

public String getJmxAgentId()

getLogWriter

public PrintWriter getLogWriter()
            throws SQLException

getLoginTimeout

public int getLoginTimeout()
            throws SQLException

getMaximumActiveTime

public long getMaximumActiveTime()

getMaximumConnectionCount

public int getMaximumConnectionCount()

getMaximumConnectionLifetime

public long getMaximumConnectionLifetime()

getMinimumConnectionCount

public int getMinimumConnectionCount()

getObjectInstance

public Object getObjectInstance(Object refObject,
                                Name name,
                                Context context,
                                Hashtable hashtable)
            throws Exception

getOverloadWithoutRefusalLifetime

public long getOverloadWithoutRefusalLifetime()

getPassword

public String getPassword()

getPrototypeCount

public int getPrototypeCount()

getRecentlyStartedThreshold

public long getRecentlyStartedThreshold()

getSimultaneousBuildThrottle

public int getSimultaneousBuildThrottle()

getStatistics

public String getStatistics()

getStatisticsLogLevel

public String getStatisticsLogLevel()

getUser

public String getUser()

isJmx

public boolean isJmx()

isTestAfterUse

public boolean isTestAfterUse()

isTestBeforeUse

public boolean isTestBeforeUse()

isTrace

public boolean isTrace()

isVerbose

public boolean isVerbose()

setAlias

public void setAlias(String alias)

setDelegateProperties

public void setDelegateProperties(String properties)
Set any property that should be handed to the delegate driver. E.g. foo=1,bar=true
Parameters:
properties - a comma delimited list of name=value pairs

setDriver

public void setDriver(String driver)

setDriverUrl

public void setDriverUrl(String url)

setFatalSqlExceptionWrapperClass

public void setFatalSqlExceptionWrapperClass(String fatalSqlExceptionWrapperClass)

setFatalSqlExceptionsAsString

public void setFatalSqlExceptionsAsString(String fatalSqlExceptionsAsString)

setHouseKeepingSleepTime

public void setHouseKeepingSleepTime(int houseKeepingSleepTime)

setHouseKeepingTestSql

public void setHouseKeepingTestSql(String houseKeepingTestSql)

setJmx

public void setJmx(boolean jmx)

setJmxAgentId

public void setJmxAgentId(String jmxAgentId)

setLogWriter

public void setLogWriter(PrintWriter logWriter)
            throws SQLException

setLoginTimeout

public void setLoginTimeout(int loginTimeout)
            throws SQLException

setMaximumActiveTime

public void setMaximumActiveTime(long maximumActiveTime)

setMaximumConnectionCount

public void setMaximumConnectionCount(int maximumConnectionCount)

setMaximumConnectionLifetime

public void setMaximumConnectionLifetime(int maximumConnectionLifetime)

setMinimumConnectionCount

public void setMinimumConnectionCount(int minimumConnectionCount)

setOverloadWithoutRefusalLifetime

public void setOverloadWithoutRefusalLifetime(int overloadWithoutRefusalLifetime)

setPassword

public void setPassword(String password)

setPrototypeCount

public void setPrototypeCount(int prototypeCount)

setRecentlyStartedThreshold

public void setRecentlyStartedThreshold(int recentlyStartedThreshold)

setSimultaneousBuildThrottle

public void setSimultaneousBuildThrottle(int simultaneousBuildThrottle)

setStatistics

public void setStatistics(String statistics)

setStatisticsLogLevel

public void setStatisticsLogLevel(String statisticsLogLevel)

setTestAfterUse

public void setTestAfterUse(boolean testAfterUse)

setTestBeforeUse

public void setTestBeforeUse(boolean testBeforeUse)

setTrace

public void setTrace(boolean trace)

setUser

public void setUser(String user)

setVerbose

public void setVerbose(boolean verbose)