com.alibaba.druid.pool.ha.cobar
Class CobarDataSource

java.lang.Object
  extended by com.alibaba.druid.pool.WrapperAdapter
      extended by com.alibaba.druid.pool.DataSourceAdapter
          extended by com.alibaba.druid.pool.ha.MultiDataSource
              extended by com.alibaba.druid.pool.ha.cobar.CobarDataSource
All Implemented Interfaces:
MultiDataSourceMBean, DataSourceProxy, Wrapper, CommonDataSource, DataSource

public class CobarDataSource
extends MultiDataSource


Field Summary
static long DEFAULT_CONFIG_LOAD_PERRIOD_MILLIS
           
static long DEFAULT_FAILURE_DETECT_PERRIOD_MILLIS
           
 
Constructor Summary
CobarDataSource()
           
 
Method Summary
 String getFilters()
           
 long getMinEvictableIdleTimeMillis()
           
 String getPassword()
           
 List<Filter> getProxyFilters()
           
 String getUrl()
           
 String getUsername()
           
 boolean isTestWhileIdle()
           
 void setFilters(String filters)
           
 void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
           
 void setPassword(String password)
           
 void setProxyFilters(List<Filter> proxyFilters)
           
 void setTestWhileIdle(boolean testWhileIdle)
           
 void setUrl(String url)
           
 void setUsername(String username)
           
 
Methods inherited from class com.alibaba.druid.pool.ha.MultiDataSource
addDataSource, afterDataSourceChanged, close, createConnectionId, createResultSetId, createStatementId, createTransactionId, failureDetect, getActiveCount, getBusySkipCount, getConfigLoadCount, getConfigLoader, getConfigLoadPeriodMillis, getConnection, getConnectProperties, getDataSourceHolder, getDataSourceNames, getDataSources, getDataSourceStat, getDbType, getEnabledDataSourceCount, getFailureDetectCount, getFailureDetector, getFailureDetectPeriodMillis, getLock, getMaxPoolSize, getMaxWait, getMaxWaitMillis, getName, getNameInternal, getNotFail, getObjectName, getProperties, getRawDriver, getRawJdbcUrl, getRealConnection, getRetryGetConnectionCount, handleNotAwailableDatasource, incrementBusySkipCount, incrementRetryGetConnectionCount, init, isEnable, isIntited, notFailSignal, resetStat, restartDataSource, setConfigLoader, setConfigLoadPeriodMillis, setEnable, setFailureDetector, setFailureDetectPeriodMillis, setMaxPoolSize, setMaxWait, setMaxWaitMillis, setName, setObjectName, startConfigLoadScheduleTask, startFailureDetectScheduleTask, stopConfigLoadScheduleTask, stopFailureDetectScheduleTask
 
Methods inherited from class com.alibaba.druid.pool.DataSourceAdapter
getConnection, getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
 
Methods inherited from class com.alibaba.druid.pool.WrapperAdapter
isWrapperFor, unwrap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Field Detail

DEFAULT_FAILURE_DETECT_PERRIOD_MILLIS

public static final long DEFAULT_FAILURE_DETECT_PERRIOD_MILLIS
See Also:
Constant Field Values

DEFAULT_CONFIG_LOAD_PERRIOD_MILLIS

public static final long DEFAULT_CONFIG_LOAD_PERRIOD_MILLIS
See Also:
Constant Field Values
Constructor Detail

CobarDataSource

public CobarDataSource()
Method Detail

isTestWhileIdle

public boolean isTestWhileIdle()

setTestWhileIdle

public void setTestWhileIdle(boolean testWhileIdle)

getMinEvictableIdleTimeMillis

public long getMinEvictableIdleTimeMillis()

setMinEvictableIdleTimeMillis

public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)

getUrl

public String getUrl()
Specified by:
getUrl in interface DataSourceProxy
Overrides:
getUrl in class MultiDataSource

setUrl

public void setUrl(String url)

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getProxyFilters

public List<Filter> getProxyFilters()
Specified by:
getProxyFilters in interface DataSourceProxy
Overrides:
getProxyFilters in class MultiDataSource

setProxyFilters

public void setProxyFilters(List<Filter> proxyFilters)

getFilters

public String getFilters()

setFilters

public void setFilters(String filters)


Copyright © 2012 Alibaba Group. All Rights Reserved.