public final class MetaDataPersistService extends Object
| Constructor and Description |
|---|
MetaDataPersistService(PersistRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,DataSource> |
getEffectiveDataSources(String schemaName,
Map<String,? extends org.apache.shardingsphere.infra.config.schema.SchemaConfiguration> schemaConfigs)
Get effective data sources.
|
void |
persistConfigurations(Map<String,? extends org.apache.shardingsphere.infra.config.schema.SchemaConfiguration> schemaConfigs,
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> globalRuleConfigs,
Properties props,
boolean isOverwrite)
Persist configurations.
|
void |
persistInstanceLabels(String instanceId,
Collection<String> labels,
boolean isOverwrite)
Persist instance labels.
|
void |
persistTransactionRule(Properties props,
boolean isOverwrite)
Persist transaction rule.
|
public MetaDataPersistService(PersistRepository repository)
public void persistConfigurations(Map<String,? extends org.apache.shardingsphere.infra.config.schema.SchemaConfiguration> schemaConfigs, Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> globalRuleConfigs, Properties props, boolean isOverwrite)
schemaConfigs - schema configurationsglobalRuleConfigs - global rule configurationsprops - propertiesisOverwrite - whether overwrite registry center's configuration if existedpublic void persistInstanceLabels(String instanceId, Collection<String> labels, boolean isOverwrite)
instanceId - instance idlabels - labelsisOverwrite - whether overwrite registry center's configuration if existedpublic Map<String,DataSource> getEffectiveDataSources(String schemaName, Map<String,? extends org.apache.shardingsphere.infra.config.schema.SchemaConfiguration> schemaConfigs)
schemaName - schema nameschemaConfigs - schema configurationspublic void persistTransactionRule(Properties props, boolean isOverwrite)
props - transaction propsisOverwrite - whether overwrite registry center's configuration if existedCopyright © 2022 The Apache Software Foundation. All rights reserved.