public final class SchemaRuleRegistryService extends Object implements SchemaBasedRegistryService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>
| Constructor and Description |
|---|
SchemaRuleRegistryService(RegistryCenterRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExisted(String schemaName)
Judge whether schema configuration existed.
|
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> |
load(String schemaName)
Load configurations.
|
void |
persist(String schemaName,
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs)
Persist configurations.
|
void |
persist(String schemaName,
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs,
boolean isOverwrite)
Persist configurations.
|
void |
update(RuleConfigurationsAlteredSQLNotificationEvent event)
Update rule configurations for alter.
|
public SchemaRuleRegistryService(RegistryCenterRepository repository)
public void persist(String schemaName, Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs, boolean isOverwrite)
SchemaBasedRegistryServicepersist in interface SchemaBasedRegistryService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema nameconfigs - configurationsisOverwrite - is overwritepublic void persist(String schemaName, Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> configs)
SchemaBasedRegistryServicepersist in interface SchemaBasedRegistryService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema nameconfigs - configurationspublic Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> load(String schemaName)
SchemaBasedRegistryServiceload in interface SchemaBasedRegistryService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema namepublic boolean isExisted(String schemaName)
SchemaBasedRegistryServiceisExisted in interface SchemaBasedRegistryService<Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>>schemaName - schema namepublic void update(RuleConfigurationsAlteredSQLNotificationEvent event)
event - rule configurations altered eventCopyright © 2021 The Apache Software Foundation. All rights reserved.