public final class GovernanceFacade extends Object implements AutoCloseable
| Constructor and Description |
|---|
GovernanceFacade() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
init(GovernanceConfiguration config,
Collection<String> schemaNames)
Initialize governance facade.
|
void |
onlineInstance()
Online instance.
|
void |
onlineInstance(Map<String,Map<String,org.apache.shardingsphere.infra.config.datasource.DataSourceConfiguration>> dataSourceConfigs,
Map<String,Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>> schemaRuleConfigs,
Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> globalRuleConfigs,
Properties props)
Online instance.
|
public void init(GovernanceConfiguration config, Collection<String> schemaNames)
config - governance configurationschemaNames - schema namespublic void onlineInstance(Map<String,Map<String,org.apache.shardingsphere.infra.config.datasource.DataSourceConfiguration>> dataSourceConfigs, Map<String,Collection<org.apache.shardingsphere.infra.config.RuleConfiguration>> schemaRuleConfigs, Collection<org.apache.shardingsphere.infra.config.RuleConfiguration> globalRuleConfigs, Properties props)
dataSourceConfigs - schema and data source configuration mapschemaRuleConfigs - schema and rule configuration mapglobalRuleConfigs - global rule configurationsprops - propertiespublic void onlineInstance()
public void close()
close in interface AutoCloseableCopyright © 2021 The Apache Software Foundation. All rights reserved.