shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/coordinator/registry/cache/subscriber/ScalingRegistrySubscriber.java
/**
     * Cluster switch configuration.
     *
     * @param event cluster switch configuration event
     */
Cluster switch configuration.
@param event cluster switch configuration event
Cluster switch configuration . @param event cluster switch configuration event
@Subscribe
    public void clusterSwitchConfiguration(final ClusterSwitchConfigurationEvent event) {
        String schemaName = event.getTargetSchemaName();
        dataSourcePersistService.persist(schemaName, event.getTargetDataSourceConfigs());
        persistService.persist(schemaName, event.getTargetRuleConfigs());
    }
@ Subscribe public void clusterSwitchConfiguration ( final ClusterSwitchConfigurationEvent event ) { String schemaName = event . getTargetSchemaName ( ) ; dataSourcePersistService . persist ( schemaName , event . getTargetDataSourceConfigs ( ) ) ; persistService . persist ( schemaName , event . getTargetRuleConfigs ( ) ) ; }
Cluster switch configuration.
Cluster switch configuration .