Package com.taobao.tddl.common.util

Examples of com.taobao.tddl.common.util.DataSourceFetcher


   * @throws com.taobao.tddl.jdbc.group.exception.ConfigException
   */
  public void init() {
    if (dsKeyAndWeightCommaArray != null) {
      //�������÷�ʽ��dsKeyAndWeightCommaArray + dataSourceFetcher + dyType
      DataSourceFetcher wrapper = new DataSourceFetcher() {
        @Override
        public DataSource getDataSource(String key) {
          return dataSourceFetcher.getDataSource(key);
        }

View Full Code Here


  private static TGroupDataSource createGroupDataSource(String weightStr) {
    TGroupDataSource tgds = new TGroupDataSource();
    tgds.setDsKeyAndWeightCommaArray(weightStr);
    tgds.setDbType(DBType.MYSQL);
    tgds.setDataSourceFetcher(new DataSourceFetcher() {
      @Override
      public DataSource getDataSource(String key) {
        return createMockDataSource(key);
      }
View Full Code Here

TOP

Related Classes of com.taobao.tddl.common.util.DataSourceFetcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.