Examples of TDataSourceWrapper


Examples of com.taobao.tddl.jdbc.atom.jdbc.TDataSourceWrapper

          errorMsg = "[DB Stats Error] DbStatus is Null: "
              + this.getDbKey();
          logger.error(errorMsg);
          throw new SQLException(errorMsg);
        }
        TDataSourceWrapper tDataSourceWrapper = new TDataSourceWrapper(
            dataSource, runTimeConf);
        tDataSourceWrapper.setDatasourceName(dbKey);
        tDataSourceWrapper.setDatasourceIp(runTimeConf.getIp());
        tDataSourceWrapper.setDatasourcePort(runTimeConf.getPort());
        tDataSourceWrapper.setDatasourceRealDbName(runTimeConf.getDbName());
        tDataSourceWrapper.setDbStatus(getStatus());
        logger.warn("set datasource key: " + dbKey);
        wrapDataSource = tDataSourceWrapper;

        return wrapDataSource;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.