public class EnvDBClusterImpl extends AbstractDBCluster
| Modifier and Type | Field and Description |
|---|---|
private Context |
initCtx |
static org.slf4j.Logger |
LOG |
enumDb| Constructor and Description |
|---|
EnvDBClusterImpl(EnumDB enumDb)
构造方法.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildDataSource(DBInfo dbConnInfo)
创建数据源连接.
|
void |
closeDataSource(DBInfo dbConnInfo)
关闭数据源连接
|
createLock, getAllMasterShardingDB, getAllMasterShardingDB, getAllSlaveShardingDB, getClusterConfig, getDataLayerBuilder, getDBClusterInfo, getDBClusterInfo, getDBGenerator, getDBRouter, getDBTableFromJvm, getDBTableFromZk, getIdGenerator, getMasterGlobalConn, getSlaveGlobalDbConn, getSyncAction, getTableCluster, selectDbFromMaster, selectDbFromSlave, setScanPackage, setShardInfoFromZk, setSyncAction, shutdown, startup, startuppublic static final org.slf4j.Logger LOG
private Context initCtx
public EnvDBClusterImpl(EnumDB enumDb)
enumDb - 数据库类型public void buildDataSource(DBInfo dbConnInfo) throws LoadConfigException
AbstractDBClusterbuildDataSource in class AbstractDBClusterLoadConfigExceptionpublic void closeDataSource(DBInfo dbConnInfo)
AbstractDBClustercloseDataSource in class AbstractDBClusterCopyright © 2015. All rights reserved.