| Package | Description |
|---|---|
| org.pinus4j.cluster |
数据库集群实现.
|
| org.pinus4j.cluster.beans |
表示数据库信息的JavaBean.
|
| org.pinus4j.cluster.config.impl |
Pinus存储读取配置信息的实现.
|
| org.pinus4j.cluster.impl |
数据库集群的实现.
|
| org.pinus4j.cluster.router |
数据库集群的分库分表路由算法接口.
|
| org.pinus4j.cluster.router.impl |
路由算法实现.
|
| org.pinus4j.datalayer.iterator | |
| org.pinus4j.datalayer.jdbc |
封装对于jdbc的操作.
|
| Modifier and Type | Method and Description |
|---|---|
DBInfo |
IDBCluster.getMasterGlobalConn(String clusterName)
获取主全局库连接.
|
DBInfo |
IDBCluster.getSlaveGlobalDbConn(String clusterName,
EnumDBMasterSlave slave)
获取从库的全局库连接
|
| Modifier and Type | Class and Description |
|---|---|
class |
AppDBInfo
表示一个数据库连接信息.
|
class |
EnvDBInfo |
| Modifier and Type | Field and Description |
|---|---|
private DBInfo |
DBClusterInfo.masterGlobalDBInfo
master global database info.
|
| Modifier and Type | Field and Description |
|---|---|
private List<DBInfo> |
DBClusterRegionInfo.masterDBInfos |
private List<List<DBInfo>> |
DBClusterRegionInfo.slaveDBInfos |
private List<DBInfo> |
DBClusterInfo.slaveGlobalDBInfo
slave global database info.
|
| Modifier and Type | Method and Description |
|---|---|
DBInfo |
DBClusterInfo.getMasterGlobalDBInfo() |
| Modifier and Type | Method and Description |
|---|---|
List<DBInfo> |
DBClusterRegionInfo.getMasterDBInfos() |
List<List<DBInfo>> |
DBClusterRegionInfo.getSlaveDBInfos() |
List<DBInfo> |
DBClusterInfo.getSlaveGlobalDBInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
DBClusterInfo.setMasterGlobalDBInfo(DBInfo masterGlobalDBInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
DBClusterRegionInfo.setMasterDBInfos(List<DBInfo> masterDBInfos) |
void |
DBClusterRegionInfo.setSlaveDBInfos(List<List<DBInfo>> slaveDBInfos) |
void |
DBClusterInfo.setSlaveGlobalDBInfo(List<DBInfo> slaveGlobalDBInfo) |
| Modifier and Type | Method and Description |
|---|---|
private DBInfo |
XmlClusterConfigImpl._getDBConnInfo(String clusterName,
Node node,
EnumDBMasterSlave masterSlave)
load db info.
|
| Modifier and Type | Method and Description |
|---|---|
DBInfo |
AbstractDBCluster.getMasterGlobalConn(String clusterName) |
DBInfo |
AbstractDBCluster.getSlaveGlobalDbConn(String clusterName,
EnumDBMasterSlave slave) |
| Modifier and Type | Method and Description |
|---|---|
private void |
AbstractDBCluster._initDatabaseName(DBInfo dbInfo) |
void |
EnvDBClusterImpl.buildDataSource(DBInfo dbConnInfo) |
void |
AppDBClusterImpl.buildDataSource(DBInfo dbConnInfo) |
abstract void |
AbstractDBCluster.buildDataSource(DBInfo dbInfo)
创建数据源连接.
|
void |
EnvDBClusterImpl.closeDataSource(DBInfo dbConnInfo) |
void |
AppDBClusterImpl.closeDataSource(DBInfo dbConnInfo) |
abstract void |
AbstractDBCluster.closeDataSource(DBInfo dbConnInfo)
关闭数据源连接
|
| Modifier and Type | Field and Description |
|---|---|
private DBInfo |
RouteInfo.dbInfo
db info is selected.
|
| Modifier and Type | Method and Description |
|---|---|
DBInfo |
RouteInfo.getDbInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
RouteInfo.setDbInfo(DBInfo dbInfo) |
| Modifier and Type | Method and Description |
|---|---|
DBInfo |
SimpleHashClusterRouter.doSelect(List<DBInfo> dbInfos,
IShardingKey<?> value) |
protected abstract DBInfo |
AbstractClusterRouter.doSelect(List<DBInfo> dbInfos,
IShardingKey<?> value)
select database instance.
|
| Modifier and Type | Method and Description |
|---|---|
DBInfo |
SimpleHashClusterRouter.doSelect(List<DBInfo> dbInfos,
IShardingKey<?> value) |
protected abstract DBInfo |
AbstractClusterRouter.doSelect(List<DBInfo> dbInfos,
IShardingKey<?> value)
select database instance.
|
| Modifier and Type | Field and Description |
|---|---|
private DBInfo |
GlobalRecordIterator.dbConnInfo |
| Constructor and Description |
|---|
GlobalRecordIterator(DBInfo dbConnInfo,
Class<E> clazz) |
| Modifier and Type | Method and Description |
|---|---|
protected Number |
AbstractJdbcQuery.selectGlobalCount(IQuery query,
DBInfo dbConnInfo,
String clusterName,
Class<?> clazz) |
protected Number |
AbstractJdbcQuery.selectGlobalCountWithCache(DBInfo dbConnInfo,
String clusterName,
Class<?> clazz,
boolean useCache)
带缓存的获取全局表count
|
Copyright © 2015. All rights reserved.