public class ExternalDataSourceServiceImpl extends Object implements DataSourceService
| 构造器和说明 |
|---|
ExternalDataSourceServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkMasterWritable()
Check master db.
|
String |
getCurrentDbUrl()
Get current db url.
|
String |
getHealth()
Get heath information.
|
org.springframework.jdbc.core.JdbcTemplate |
getJdbcTemplate()
Get jdbc template.
|
org.springframework.transaction.support.TransactionTemplate |
getTransactionTemplate()
Get transaction template.
|
void |
init()
Initialize the relevant resource information.
|
void |
reload()
Reload.
|
public void init()
DataSourceServiceinit 在接口中 DataSourceServicepublic void reload()
throws IOException
DataSourceServicereload 在接口中 DataSourceServiceIOException - exception.public boolean checkMasterWritable()
DataSourceServicecheckMasterWritable 在接口中 DataSourceServicepublic org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
DataSourceServicegetJdbcTemplate 在接口中 DataSourceServicepublic org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
DataSourceServicegetTransactionTemplate 在接口中 DataSourceServicepublic String getCurrentDbUrl()
DataSourceServicegetCurrentDbUrl 在接口中 DataSourceServicepublic String getHealth()
DataSourceServicegetHealth 在接口中 DataSourceServiceCopyright © 2018–2022 Alibaba Group. All rights reserved.