Interface DataSourceService
-
- All Known Implementing Classes:
BasicDataSourceServiceImpl,LocalDataSourceServiceImpl
public interface DataSourceServicedatasource interface- Author:
- Nacos
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckMasterWritable()check master dbStringgetCurrentDBUrl()get current db urlStringgetHealth()get heathorg.springframework.jdbc.core.JdbcTemplategetJdbcTemplate()get jdbc templateorg.springframework.transaction.support.TransactionTemplategetTransactionTemplate()get transaction templatevoidreload()reload
-
-
-
Method Detail
-
reload
void reload() throws IOExceptionreload- Throws:
IOException- exception
-
checkMasterWritable
boolean checkMasterWritable()
check master db- Returns:
- is master
-
getJdbcTemplate
org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
get jdbc template- Returns:
- JdbcTemplate
-
getTransactionTemplate
org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
get transaction template- Returns:
- TransactionTemplate
-
getCurrentDBUrl
String getCurrentDBUrl()
get current db url- Returns:
-
getHealth
String getHealth()
get heath- Returns:
- heath info
-
-