public interface DataSourceService
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void init() throws Exception
Exception - exception.void reload()
throws IOException
IOException - exception.boolean checkMasterWritable()
org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
String getCurrentDbUrl()
String getHealth()
Copyright © 2018–2022 Alibaba Group. All rights reserved.