| Modifier and Type | Field and Description |
|---|---|
protected String |
clusterName
集群名
|
protected DataSource |
datasource
数据源
|
protected String |
dbName
database name.
|
protected EnumDBMasterSlave |
masterSlave
主从中的角色.
|
| Constructor and Description |
|---|
DBInfo() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
check() |
String |
getClusterName() |
DataSource |
getDatasource() |
String |
getDbName() |
EnumDBMasterSlave |
getMasterSlave() |
void |
setClusterName(String clusterName) |
void |
setDatasource(DataSource datasource) |
void |
setDbName(String dbName) |
void |
setMasterSlave(EnumDBMasterSlave masterSlave) |
protected String clusterName
protected DataSource datasource
protected String dbName
protected EnumDBMasterSlave masterSlave
public abstract boolean check()
throws LoadConfigException
LoadConfigExceptionpublic String getClusterName()
public void setClusterName(String clusterName)
public DataSource getDatasource()
public void setDatasource(DataSource datasource)
public EnumDBMasterSlave getMasterSlave()
public void setMasterSlave(EnumDBMasterSlave masterSlave)
public String getDbName()
public void setDbName(String dbName)
Copyright © 2015. All rights reserved.