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;