org.logicalcobwebs.proxool
Class ProxoolDataSource

java.lang.Object
  extended by org.logicalcobwebs.proxool.ProxoolDataSource
All Implemented Interfaces:
Wrapper, ObjectFactory, CommonDataSource, DataSource

public class ProxoolDataSource
extends Object
implements DataSource, ObjectFactory


Constructor Summary
ProxoolDataSource()
           
ProxoolDataSource(String alias)
           
 
Method Summary
 String getAlias()
           
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 String getDriver()
           
 String getDriverUrl()
           
 String getFatalSqlExceptionsAsString()
           
 String getFatalSqlExceptionWrapperClass()
           
 long getHouseKeepingSleepTime()
           
 String getHouseKeepingTestSql()
           
 String getJmxAgentId()
          Deprecated. 
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 long getMaximumActiveTime()
           
 int getMaximumConnectionCount()
           
 long getMaximumConnectionLifetime()
           
 int getMinimumConnectionCount()
           
 Object getObjectInstance(Object refObject, Name name, Context context, Hashtable hashtable)
           
 long getOverloadWithoutRefusalLifetime()
           
 Logger getParentLogger()
           
 String getPassword()
           
 int getPrototypeCount()
          Deprecated. 
 long getRecentlyStartedThreshold()
           
 int getSimultaneousBuildThrottle()
           
 String getStatistics()
           
 String getStatisticsLogLevel()
           
 String getUser()
           
 boolean isJmx()
           
 boolean isTestAfterUse()
           
 boolean isTestBeforeUse()
           
 boolean isTrace()
           
 boolean isVerbose()
           
 boolean isWrapperFor(Class<?> iface)
           
 void setAlias(String alias)
           
 void setDelegateProperties(String properties)
           
 void setDriver(String driver)
           
 void setDriverUrl(String url)
           
 void setFatalSqlExceptionsAsString(String fatalSqlExceptionsAsString)
          Deprecated. 
 void setFatalSqlExceptionWrapperClass(String fatalSqlExceptionWrapperClass)
           
 void setHouseKeepingSleepTime(int houseKeepingSleepTime)
           
 void setHouseKeepingTestSql(String houseKeepingTestSql)
           
 void setJmx(boolean jmx)
           
 void setJmxAgentId(String jmxAgentId)
          Deprecated. 
 void setLoginTimeout(int seconds)
           
 void setLogWriter(PrintWriter out)
           
 void setMaximumActiveTime(long maximumActiveTime)
           
 void setMaximumConnectionCount(int maximumConnectionCount)
           
 void setMaximumConnectionLifetime(int maximumConnectionLifetime)
          Deprecated. 
 void setMinimumConnectionCount(int minimumConnectionCount)
           
 void setOverloadWithoutRefusalLifetime(int overloadWithoutRefusalLifetime)
           
 void setPassword(String password)
           
 void setPrototypeCount(int prototypeCount)
          Deprecated. 
 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)
          Deprecated. 
 void setUser(String user)
           
 void setVerbose(boolean verbose)
          Deprecated. 
<T> T
unwrap(Class<T> iface)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxoolDataSource

public ProxoolDataSource()

ProxoolDataSource

public ProxoolDataSource(String alias)
Method Detail

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException
Specified by:
getLogWriter in interface CommonDataSource
Throws:
SQLException

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws SQLException
Specified by:
setLogWriter in interface CommonDataSource
Throws:
SQLException

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws SQLException
Specified by:
setLoginTimeout in interface CommonDataSource
Throws:
SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Specified by:
getLoginTimeout in interface CommonDataSource
Throws:
SQLException

getParentLogger

public Logger getParentLogger()
                       throws SQLFeatureNotSupportedException
Throws:
SQLFeatureNotSupportedException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Specified by:
unwrap in interface Wrapper
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException

getObjectInstance

public Object getObjectInstance(Object refObject,
                                Name name,
                                Context context,
                                Hashtable hashtable)
                         throws Exception
Specified by:
getObjectInstance in interface ObjectFactory
Throws:
Exception

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getConnection

public Connection getConnection(String username,
                                String password)
                         throws SQLException
Specified by:
getConnection in interface DataSource
Throws:
SQLException

getAlias

public String getAlias()

setAlias

public void setAlias(String alias)

getDriverUrl

public String getDriverUrl()

setDriverUrl

public void setDriverUrl(String url)

getDriver

public String getDriver()
See Also:
ConnectionPoolDefinitionIF#getDriver

setDriver

public void setDriver(String driver)
See Also:
ConnectionPoolDefinitionIF#getDriver

getMaximumConnectionLifetime

public long getMaximumConnectionLifetime()
See Also:
ConnectionPoolDefinitionIF#getMaximumConnectionLifetime

setMaximumConnectionLifetime

@Deprecated
public void setMaximumConnectionLifetime(int maximumConnectionLifetime)
Deprecated. 

See Also:
ConnectionPoolDefinitionIF#getMaximumConnectionLifetime

getPrototypeCount

@Deprecated
public int getPrototypeCount()
Deprecated. 

See Also:
ConnectionPoolDefinitionIF#getPrototypeCount

setPrototypeCount

@Deprecated
public void setPrototypeCount(int prototypeCount)
Deprecated. 

See Also:
ConnectionPoolDefinitionIF#getPrototypeCount

getMinimumConnectionCount

public int getMinimumConnectionCount()
See Also:
ConnectionPoolDefinitionIF#getMinimumConnectionCount

setMinimumConnectionCount

public void setMinimumConnectionCount(int minimumConnectionCount)
See Also:
ConnectionPoolDefinitionIF#getMinimumConnectionCount

getMaximumConnectionCount

public int getMaximumConnectionCount()
See Also:
ConnectionPoolDefinitionIF#getMaximumConnectionCount

setMaximumConnectionCount

public void setMaximumConnectionCount(int maximumConnectionCount)
See Also:
ConnectionPoolDefinitionIF#getMaximumConnectionCount

getHouseKeepingSleepTime

public long getHouseKeepingSleepTime()
See Also:
ConnectionPoolDefinitionIF#getHouseKeepingSleepTime

setHouseKeepingSleepTime

public void setHouseKeepingSleepTime(int houseKeepingSleepTime)
See Also:
ConnectionPoolDefinitionIF#getHouseKeepingSleepTime

getSimultaneousBuildThrottle

public int getSimultaneousBuildThrottle()
See Also:
ConnectionPoolDefinitionIF#getSimultaneousBuildThrottle

setSimultaneousBuildThrottle

public void setSimultaneousBuildThrottle(int simultaneousBuildThrottle)
See Also:
ConnectionPoolDefinitionIF#getSimultaneousBuildThrottle

getRecentlyStartedThreshold

public long getRecentlyStartedThreshold()
See Also:
ConnectionPoolDefinitionIF#getRecentlyStartedThreshold

setRecentlyStartedThreshold

public void setRecentlyStartedThreshold(int recentlyStartedThreshold)
See Also:
ConnectionPoolDefinitionIF#getRecentlyStartedThreshold

getOverloadWithoutRefusalLifetime

public long getOverloadWithoutRefusalLifetime()
See Also:
ConnectionPoolDefinitionIF#getOverloadWithoutRefusalLifetime

setOverloadWithoutRefusalLifetime

public void setOverloadWithoutRefusalLifetime(int overloadWithoutRefusalLifetime)
See Also:
ConnectionPoolDefinitionIF#getOverloadWithoutRefusalLifetime

getMaximumActiveTime

public long getMaximumActiveTime()
See Also:
ConnectionPoolDefinitionIF#getMaximumActiveTime

setMaximumActiveTime

public void setMaximumActiveTime(long maximumActiveTime)
See Also:
ConnectionPoolDefinitionIF#getMaximumActiveTime

isVerbose

public boolean isVerbose()
See Also:
ConnectionPoolDefinitionIF#isVerbose

setVerbose

@Deprecated
public void setVerbose(boolean verbose)
Deprecated. 

See Also:
ConnectionPoolDefinitionIF#isVerbose

isTrace

public boolean isTrace()
See Also:
ConnectionPoolDefinitionIF#isTrace

setTrace

@Deprecated
public void setTrace(boolean trace)
Deprecated. 

See Also:
ConnectionPoolDefinitionIF#isTrace

getStatistics

public String getStatistics()
See Also:
ConnectionPoolDefinitionIF#getStatistics

setStatistics

public void setStatistics(String statistics)
See Also:
ConnectionPoolDefinitionIF#getStatistics

getStatisticsLogLevel

public String getStatisticsLogLevel()
See Also:
ConnectionPoolDefinitionIF#getStatisticsLogLevel

setStatisticsLogLevel

public void setStatisticsLogLevel(String statisticsLogLevel)
See Also:
ConnectionPoolDefinitionIF#getStatisticsLogLevel

getFatalSqlExceptionsAsString

public String getFatalSqlExceptionsAsString()
See Also:
ConnectionPoolDefinitionIF#getFatalSqlExceptions

setFatalSqlExceptionsAsString

@Deprecated
public void setFatalSqlExceptionsAsString(String fatalSqlExceptionsAsString)
Deprecated. 

See Also:
ConnectionPoolDefinitionIF#getFatalSqlExceptions

getFatalSqlExceptionWrapperClass

public String getFatalSqlExceptionWrapperClass()
See Also:
ConnectionPoolDefinitionIF#getFatalSqlExceptionWrapper()

setFatalSqlExceptionWrapperClass

public void setFatalSqlExceptionWrapperClass(String fatalSqlExceptionWrapperClass)
See Also:
ConnectionPoolDefinitionIF#getFatalSqlExceptionWrapper()

getHouseKeepingTestSql

public String getHouseKeepingTestSql()
See Also:
ConnectionPoolDefinitionIF#getHouseKeepingTestSql

setHouseKeepingTestSql

public void setHouseKeepingTestSql(String houseKeepingTestSql)
See Also:
ConnectionPoolDefinitionIF#getHouseKeepingTestSql

getUser

public String getUser()
See Also:
ConnectionPoolDefinitionIF#getUser

setUser

public void setUser(String user)
See Also:
ConnectionPoolDefinitionIF#getUser

getPassword

public String getPassword()
See Also:
ConnectionPoolDefinitionIF#getPassword

setPassword

public void setPassword(String password)
See Also:
ConnectionPoolDefinitionIF#getPassword

isJmx

public boolean isJmx()
See Also:
ConnectionPoolDefinitionIF#isJmx()

setJmx

public void setJmx(boolean jmx)
See Also:
ConnectionPoolDefinitionIF#isJmx()

getJmxAgentId

@Deprecated
public String getJmxAgentId()
Deprecated. 

See Also:
ConnectionPoolDefinitionIF#getJmxAgentId()

setJmxAgentId

@Deprecated
public void setJmxAgentId(String jmxAgentId)
Deprecated. 

See Also:
ConnectionPoolDefinitionIF#getJmxAgentId()

isTestBeforeUse

public boolean isTestBeforeUse()
See Also:
ConnectionPoolDefinitionIF#isTestBeforeUse

setTestBeforeUse

public void setTestBeforeUse(boolean testBeforeUse)
See Also:
ConnectionPoolDefinitionIF#isTestBeforeUse

isTestAfterUse

public boolean isTestAfterUse()
See Also:
ConnectionPoolDefinitionIF#isTestAfterUse

setTestAfterUse

public void setTestAfterUse(boolean testAfterUse)
See Also:
ConnectionPoolDefinitionIF#isTestAfterUse

setDelegateProperties

public void setDelegateProperties(String properties)


Copyright © 2012 Alibaba Group. All Rights Reserved.