public final class DataSourceStatusRegistryService extends Object
| Constructor and Description |
|---|
DataSourceStatusRegistryService(RegistryCenterRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
loadDisabledDataSources(String schemaName)
Load disabled data source names.
|
void |
update(org.apache.shardingsphere.infra.rule.event.impl.DataSourceDisabledEvent event)
Update data source disabled state.
|
void |
update(org.apache.shardingsphere.infra.rule.event.impl.PrimaryDataSourceEvent event)
Update primary data source state.
|
public DataSourceStatusRegistryService(RegistryCenterRepository repository)
public Collection<String> loadDisabledDataSources(String schemaName)
schemaName - schema name to be loadedpublic void update(org.apache.shardingsphere.infra.rule.event.impl.DataSourceDisabledEvent event)
event - data source disabled eventpublic void update(org.apache.shardingsphere.infra.rule.event.impl.PrimaryDataSourceEvent event)
event - primary data source eventCopyright © 2021 The Apache Software Foundation. All rights reserved.