org.logicalcobwebs.proxool
类 ProxoolDataSource

java.lang.Object
  继承者 org.logicalcobwebs.proxool.ProxoolDataSource
所有已实现的接口:
Wrapper, ObjectFactory, CommonDataSource, DataSource

public class ProxoolDataSource
extends Object
implements DataSource, ObjectFactory

The Proxool DataSource implementation. Supports three modes of configuration:

TODO - expand

从以下版本开始:
Proxool 0.9
版本:
$Revision: 1.11 $, $Date: 2007/12/14 23:03:28 $
作者:
bill, $Author: billhorsman $ (current maintainer)

构造方法摘要
ProxoolDataSource()
           
ProxoolDataSource(String alias)
           
 
方法摘要
 String getAlias()
           
 Connection getConnection()
           
 Connection getConnection(String s, String s1)
           
 String getDriver()
           
 String getDriverUrl()
           
 String getFatalSqlExceptionsAsString()
           
 String getFatalSqlExceptionWrapperClass()
           
 long getHouseKeepingSleepTime()
           
 String getHouseKeepingTestSql()
           
 String getJmxAgentId()
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 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()
           
 boolean isWrapperFor(Class<?> iface)
           
 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 setFatalSqlExceptionsAsString(String fatalSqlExceptionsAsString)
           
 void setFatalSqlExceptionWrapperClass(String fatalSqlExceptionWrapperClass)
           
 void setHouseKeepingSleepTime(int houseKeepingSleepTime)
           
 void setHouseKeepingTestSql(String houseKeepingTestSql)
           
 void setJmx(boolean jmx)
           
 void setJmxAgentId(String jmxAgentId)
           
 void setLoginTimeout(int loginTimeout)
           
 void setLogWriter(PrintWriter logWriter)
           
 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)
           
<T> T
unwrap(Class<T> iface)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ProxoolDataSource

public ProxoolDataSource()

ProxoolDataSource

public ProxoolDataSource(String alias)
方法详细信息

getConnection

public Connection getConnection()
                         throws SQLException
指定者:
接口 DataSource 中的 getConnection
抛出:
SQLException
另请参见:
DataSource.getConnection()

getObjectInstance

public Object getObjectInstance(Object refObject,
                                Name name,
                                Context context,
                                Hashtable hashtable)
                         throws Exception
指定者:
接口 ObjectFactory 中的 getObjectInstance
抛出:
Exception

getAlias

public String getAlias()
另请参见:
ConnectionPoolDefinitionIF.getAlias()

setAlias

public void setAlias(String alias)
另请参见:
ConnectionPoolDefinitionIF.getAlias()

getDriverUrl

public String getDriverUrl()
另请参见:
ConnectionPoolDefinitionIF.getUrl()

setDriverUrl

public void setDriverUrl(String url)
另请参见:
ConnectionPoolDefinitionIF.getUrl()

getDriver

public String getDriver()
另请参见:
ConnectionPoolDefinitionIF.getDriver()

setDriver

public void setDriver(String driver)
另请参见:
ConnectionPoolDefinitionIF.getDriver()

getMaximumConnectionLifetime

public long getMaximumConnectionLifetime()
另请参见:
ConnectionPoolDefinitionIF.getMaximumConnectionLifetime()

setMaximumConnectionLifetime

public void setMaximumConnectionLifetime(int maximumConnectionLifetime)
另请参见:
ConnectionPoolDefinitionIF.getMaximumConnectionLifetime()

getPrototypeCount

public int getPrototypeCount()
另请参见:
ConnectionPoolDefinitionIF.getPrototypeCount()

setPrototypeCount

public void setPrototypeCount(int prototypeCount)
另请参见:
ConnectionPoolDefinitionIF.getPrototypeCount()

getMinimumConnectionCount

public int getMinimumConnectionCount()
另请参见:
ConnectionPoolDefinitionIF.getMinimumConnectionCount()

setMinimumConnectionCount

public void setMinimumConnectionCount(int minimumConnectionCount)
另请参见:
ConnectionPoolDefinitionIF.getMinimumConnectionCount()

getMaximumConnectionCount

public int getMaximumConnectionCount()
另请参见:
ConnectionPoolDefinitionIF.getMaximumConnectionCount()

setMaximumConnectionCount

public void setMaximumConnectionCount(int maximumConnectionCount)
另请参见:
ConnectionPoolDefinitionIF.getMaximumConnectionCount()

getHouseKeepingSleepTime

public long getHouseKeepingSleepTime()
另请参见:
ConnectionPoolDefinitionIF.getHouseKeepingSleepTime()

setHouseKeepingSleepTime

public void setHouseKeepingSleepTime(int houseKeepingSleepTime)
另请参见:
ConnectionPoolDefinitionIF.getHouseKeepingSleepTime()

getSimultaneousBuildThrottle

public int getSimultaneousBuildThrottle()
另请参见:
ConnectionPoolDefinitionIF.getSimultaneousBuildThrottle()

setSimultaneousBuildThrottle

public void setSimultaneousBuildThrottle(int simultaneousBuildThrottle)
另请参见:
ConnectionPoolDefinitionIF.getSimultaneousBuildThrottle()

getRecentlyStartedThreshold

public long getRecentlyStartedThreshold()
另请参见:
ConnectionPoolDefinitionIF.getRecentlyStartedThreshold()

setRecentlyStartedThreshold

public void setRecentlyStartedThreshold(int recentlyStartedThreshold)
另请参见:
ConnectionPoolDefinitionIF.getRecentlyStartedThreshold()

getOverloadWithoutRefusalLifetime

public long getOverloadWithoutRefusalLifetime()
另请参见:
ConnectionPoolDefinitionIF.getOverloadWithoutRefusalLifetime()

setOverloadWithoutRefusalLifetime

public void setOverloadWithoutRefusalLifetime(int overloadWithoutRefusalLifetime)
另请参见:
ConnectionPoolDefinitionIF.getOverloadWithoutRefusalLifetime()

getMaximumActiveTime

public long getMaximumActiveTime()
另请参见:
ConnectionPoolDefinitionIF.getMaximumActiveTime()

setMaximumActiveTime

public void setMaximumActiveTime(long maximumActiveTime)
另请参见:
ConnectionPoolDefinitionIF.getMaximumActiveTime()

isVerbose

public boolean isVerbose()
另请参见:
ConnectionPoolDefinitionIF.isVerbose()

setVerbose

public void setVerbose(boolean verbose)
另请参见:
ConnectionPoolDefinitionIF.isVerbose()

isTrace

public boolean isTrace()
另请参见:
ConnectionPoolDefinitionIF.isTrace()

setTrace

public void setTrace(boolean trace)
另请参见:
ConnectionPoolDefinitionIF.isTrace()

getStatistics

public String getStatistics()
另请参见:
ConnectionPoolDefinitionIF.getStatistics()

setStatistics

public void setStatistics(String statistics)
另请参见:
ConnectionPoolDefinitionIF.getStatistics()

getStatisticsLogLevel

public String getStatisticsLogLevel()
另请参见:
ConnectionPoolDefinitionIF.getStatisticsLogLevel()

setStatisticsLogLevel

public void setStatisticsLogLevel(String statisticsLogLevel)
另请参见:
ConnectionPoolDefinitionIF.getStatisticsLogLevel()

getFatalSqlExceptionsAsString

public String getFatalSqlExceptionsAsString()
另请参见:
ConnectionPoolDefinitionIF.getFatalSqlExceptions()

setFatalSqlExceptionsAsString

public void setFatalSqlExceptionsAsString(String fatalSqlExceptionsAsString)
另请参见:
ConnectionPoolDefinitionIF.getFatalSqlExceptions()

getFatalSqlExceptionWrapperClass

public String getFatalSqlExceptionWrapperClass()
另请参见:
ConnectionPoolDefinitionIF.getFatalSqlExceptionWrapper()

setFatalSqlExceptionWrapperClass

public void setFatalSqlExceptionWrapperClass(String fatalSqlExceptionWrapperClass)
另请参见:
ConnectionPoolDefinitionIF.getFatalSqlExceptionWrapper()

getHouseKeepingTestSql

public String getHouseKeepingTestSql()
另请参见:
ConnectionPoolDefinitionIF.getHouseKeepingTestSql()

setHouseKeepingTestSql

public void setHouseKeepingTestSql(String houseKeepingTestSql)
另请参见:
ConnectionPoolDefinitionIF.getHouseKeepingTestSql()

getUser

public String getUser()
另请参见:
ConnectionPoolDefinitionIF.getUser()

setUser

public void setUser(String user)
另请参见:
ConnectionPoolDefinitionIF.getUser()

getPassword

public String getPassword()
另请参见:
ConnectionPoolDefinitionIF.getPassword()

setPassword

public void setPassword(String password)
另请参见:
ConnectionPoolDefinitionIF.getPassword()

isJmx

public boolean isJmx()
另请参见:
ConnectionPoolDefinitionIF.isJmx()

setJmx

public void setJmx(boolean jmx)
另请参见:
ConnectionPoolDefinitionIF.isJmx()

getJmxAgentId

public String getJmxAgentId()
另请参见:
ConnectionPoolDefinitionIF.getJmxAgentId()

setJmxAgentId

public void setJmxAgentId(String jmxAgentId)
另请参见:
ConnectionPoolDefinitionIF.getJmxAgentId()

isTestBeforeUse

public boolean isTestBeforeUse()
另请参见:
ConnectionPoolDefinitionIF.isTestBeforeUse()

setTestBeforeUse

public void setTestBeforeUse(boolean testBeforeUse)
另请参见:
ConnectionPoolDefinitionIF.isTestBeforeUse()

isTestAfterUse

public boolean isTestAfterUse()
另请参见:
ConnectionPoolDefinitionIF.isTestAfterUse()

setTestAfterUse

public void setTestAfterUse(boolean testAfterUse)
另请参见:
ConnectionPoolDefinitionIF.isTestAfterUse()

setDelegateProperties

public void setDelegateProperties(String properties)
Set any property that should be handed to the delegate driver. E.g. foo=1,bar=true

参数:
properties - a comma delimited list of name=value pairs
另请参见:
ConnectionPoolDefinitionIF.getDelegateProperties()

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException
指定者:
接口 CommonDataSource 中的 getLogWriter
抛出:
SQLException

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
指定者:
接口 CommonDataSource 中的 getLoginTimeout
抛出:
SQLException

setLogWriter

public void setLogWriter(PrintWriter logWriter)
                  throws SQLException
指定者:
接口 CommonDataSource 中的 setLogWriter
抛出:
SQLException

setLoginTimeout

public void setLoginTimeout(int loginTimeout)
                     throws SQLException
指定者:
接口 CommonDataSource 中的 setLoginTimeout
抛出:
SQLException

getConnection

public Connection getConnection(String s,
                                String s1)
                         throws SQLException
指定者:
接口 DataSource 中的 getConnection
抛出:
SQLException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
指定者:
接口 Wrapper 中的 unwrap
抛出:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
指定者:
接口 Wrapper 中的 isWrapperFor
抛出:
SQLException


Copyright © 2014. All rights reserved.