| Package | Description |
|---|---|
| org.pinus4j.cluster |
数据库集群实现.
|
| org.pinus4j.cluster.impl |
数据库集群的实现.
|
| Modifier and Type | Method and Description |
|---|---|
DBInfo |
IDBCluster.getMasterGlobalConn(String clusterName)
获取主全局库连接.
|
DBInfo |
IDBCluster.getSlaveGlobalDbConn(String clusterName,
EnumDBMasterSlave slave)
获取从库的全局库连接
|
DB |
IDBCluster.selectDbFromMaster(String tableName,
IShardingKey<?> value)
从主库集群中获取被操作的库表.
|
DB |
IDBCluster.selectDbFromSlave(String tableName,
IShardingKey<?> value,
EnumDBMasterSlave slave)
从从库集群中获取被操作的库表.
|
void |
IDBCluster.shutdown()
关闭集群.
|
void |
IDBCluster.startup()
启动集群.
|
void |
IDBCluster.startup(String xmlFilePath)
启动集群.
|
| Modifier and Type | Method and Description |
|---|---|
private Map<String,Integer> |
AbstractDBCluster._loadTableInfo(String clusterName,
List<DBTable> tables)
build table info by table meta.
|
DBInfo |
AbstractDBCluster.getMasterGlobalConn(String clusterName) |
DBInfo |
AbstractDBCluster.getSlaveGlobalDbConn(String clusterName,
EnumDBMasterSlave slave) |
DB |
AbstractDBCluster.selectDbFromMaster(String tableName,
IShardingKey<?> value) |
DB |
AbstractDBCluster.selectDbFromSlave(String tableName,
IShardingKey<?> value,
EnumDBMasterSlave slaveNum) |
void |
AbstractDBCluster.shutdown()
relase resource.
|
void |
AbstractDBCluster.startup() |
void |
AbstractDBCluster.startup(String xmlFilePath) |
Copyright © 2015. All rights reserved.