Interface DataSourceChecker
- All Superinterfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
public interface DataSourceChecker
extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
Data source checker.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckConnection(Collection<? extends DataSource> dataSources) Check data source connections.voidcheckPrivilege(Collection<? extends DataSource> dataSources) Check user privileges.voidcheckTargetTable(Collection<? extends DataSource> dataSources, TableNameSchemaNameMapping tableNameSchemaNameMapping, Collection<String> logicTableNames) Check table is empty.voidcheckVariable(Collection<? extends DataSource> dataSources) Check data source variables.Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
getType, getTypeAliases, init, isDefault
-
Method Details
-
checkConnection
Check data source connections.- Parameters:
dataSources- data sources
-
checkPrivilege
Check user privileges.- Parameters:
dataSources- data sources
-
checkVariable
Check data source variables.- Parameters:
dataSources- data sources
-
checkTargetTable
void checkTargetTable(Collection<? extends DataSource> dataSources, TableNameSchemaNameMapping tableNameSchemaNameMapping, Collection<String> logicTableNames) Check table is empty.- Parameters:
dataSources- data sourcestableNameSchemaNameMapping- mappinglogicTableNames- logic table names
-