public interface MutableDataNodeRule extends ShardingSphereRule
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<DataNode> |
findSingleTableDataNode(String schemaName,
String tableName)
Find single data node.
|
void |
put(String dataSourceName,
String schemaName,
String tableName)
Add data node.
|
ShardingSphereRule |
reloadRule(RuleConfiguration config,
String databaseName,
Map<String,DataSource> dataSourceMap,
Collection<ShardingSphereRule> builtRules)
Reload single table rule.
|
void |
remove(Collection<String> schemaNames,
String tableName)
Remove data node.
|
void |
remove(String schemaName,
String tableName)
Remove data node.
|
getConfiguration, getTypevoid put(String dataSourceName, String schemaName, String tableName)
dataSourceName - data source nameschemaName - schema nametableName - table namevoid remove(String schemaName, String tableName)
schemaName - schema nametableName - table namevoid remove(Collection<String> schemaNames, String tableName)
schemaNames - schema name collectiontableName - table nameOptional<DataNode> findSingleTableDataNode(String schemaName, String tableName)
schemaName - schema nametableName - table nameShardingSphereRule reloadRule(RuleConfiguration config, String databaseName, Map<String,DataSource> dataSourceMap, Collection<ShardingSphereRule> builtRules)
config - rule configurationdatabaseName - database namedataSourceMap - data source mapbuiltRules - built rulesCopyright © 2022 The Apache Software Foundation. All rights reserved.