test_class.declarator: DATA_SOURCE_YAML = "conf/reg_center/config_center/data-sources.yaml"
test_class.modifier: private static final
test_class.original_string: private static final String DATA_SOURCE_YAML = "conf/reg_center/config_center/data-sources.yaml";
test_class.type: String
test_class.var_name: DATA_SOURCE_YAML
test_class.declarator: SHARDING_RULE_YAML = "conf/reg_center/config_center/sharding-rule.yaml"
test_class.modifier: private static final
test_class.original_string: private static final String SHARDING_RULE_YAML = "conf/reg_center/config_center/sharding-rule.yaml";
test_class.type: String
test_class.var_name: SHARDING_RULE_YAML
test_class.declarator: AUTHENTICATION_YAML = "conf/reg_center/config_center/authentication.yaml"
test_class.modifier: private static final
test_class.original_string: private static final String AUTHENTICATION_YAML = "conf/reg_center/config_center/authentication.yaml";
test_class.type: String
test_class.var_name: AUTHENTICATION_YAML
test_class.declarator: PROPS_YAML = "conf/reg_center/config_center/props.yaml"
test_class.modifier: private static final
test_class.original_string: private static final String PROPS_YAML = "conf/reg_center/config_center/props.yaml";
test_class.type: String
test_class.var_name: PROPS_YAML
test_class.declarator: configurationRepository = new FixtureConfigurationRepository()
test_class.modifier: private
test_class.original_string: private FixtureConfigurationRepository configurationRepository = new FixtureConfigurationRepository();
test_class.type: FixtureConfigurationRepository
test_class.var_name: configurationRepository
test_class.file: shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/test/java/org/apache/shardingsphere/proxy/init/impl/GovernanceBootstrapInitializerTest.java
test_class.identifier: GovernanceBootstrapInitializerTest
test_class.superclass: extends AbstractBootstrapInitializerTest
test_case.body: @Test
      public void assertGetProxyConfiguration() throws IOException {
          initConfigCenter();
          YamlProxyConfiguration yamlProxyConfig = ProxyConfigurationLoader.load("/conf/reg_center/");
          assertProxyConfiguration(getInitializer().getProxyConfiguration(yamlProxyConfig));
          closeConfigCenter();
      }
test_case.class_method_signature: GovernanceBootstrapInitializerTest.assertGetProxyConfiguration()
test_case.full_signature: @Test public void assertGetProxyConfiguration()
test_case.identifier: assertGetProxyConfiguration
test_case.invocations: initConfigCenter load assertProxyConfiguration getProxyConfiguration getInitializer closeConfigCenter
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetProxyConfiguration()
focal_class.declarator: governanceFacade = new GovernanceFacade()
focal_class.modifier: private final
focal_class.original_string: private final GovernanceFacade governanceFacade = new GovernanceFacade();
focal_class.type: GovernanceFacade
focal_class.var_name: governanceFacade
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/java/org/apache/shardingsphere/proxy/init/impl/GovernanceBootstrapInitializer.java
focal_class.identifier: GovernanceBootstrapInitializer
focal_class.class_method_signature: GovernanceBootstrapInitializer.getProxyConfiguration(final YamlProxyConfiguration yamlConfig)
focal_class.full_signature: @Override protected ProxyConfiguration getProxyConfiguration(final YamlProxyConfiguration yamlConfig)
focal_class.identifier: getProxyConfiguration
focal_class.modifiers: @Override protected
focal_class.parameters: (final YamlProxyConfiguration yamlConfig)
focal_class.return: ProxyConfiguration
focal_class.signature: ProxyConfiguration getProxyConfiguration(final YamlProxyConfiguration yamlConfig)
focal_class.class_method_signature: GovernanceBootstrapInitializer.initConfigurations(final YamlProxyConfiguration yamlConfig)
focal_class.full_signature: private void initConfigurations(final YamlProxyConfiguration yamlConfig)
focal_class.identifier: initConfigurations
focal_class.modifiers: private
focal_class.parameters: (final YamlProxyConfiguration yamlConfig)
focal_class.return: void
focal_class.signature: void initConfigurations(final YamlProxyConfiguration yamlConfig)
focal_class.class_method_signature: GovernanceBootstrapInitializer.isEmptyLocalConfiguration(final YamlProxyServerConfiguration serverConfig, final Map<String, YamlProxyRuleConfiguration> ruleConfigs)
focal_class.full_signature: private boolean isEmptyLocalConfiguration(final YamlProxyServerConfiguration serverConfig, final Map<String, YamlProxyRuleConfiguration> ruleConfigs)
focal_class.identifier: isEmptyLocalConfiguration
focal_class.modifiers: private
focal_class.parameters: (final YamlProxyServerConfiguration serverConfig, final Map<String, YamlProxyRuleConfiguration> ruleConfigs)
focal_class.return: boolean
focal_class.signature: boolean isEmptyLocalConfiguration(final YamlProxyServerConfiguration serverConfig, final Map<String, YamlProxyRuleConfiguration> ruleConfigs)
focal_class.class_method_signature: GovernanceBootstrapInitializer.getDataSourceConfigurationMap(final Map<String, YamlProxyRuleConfiguration> ruleConfigs)
focal_class.full_signature: private Map<String, Map<String, DataSourceConfiguration>> getDataSourceConfigurationMap(final Map<String, YamlProxyRuleConfiguration> ruleConfigs)
focal_class.identifier: getDataSourceConfigurationMap
focal_class.modifiers: private
focal_class.parameters: (final Map<String, YamlProxyRuleConfiguration> ruleConfigs)
focal_class.return: Map<String, Map<String, DataSourceConfiguration>>
focal_class.signature: Map<String, Map<String, DataSourceConfiguration>> getDataSourceConfigurationMap(final Map<String, YamlProxyRuleConfiguration> ruleConfigs)
focal_class.class_method_signature: GovernanceBootstrapInitializer.getRuleConfigurations(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.full_signature: private Map<String, Collection<RuleConfiguration>> getRuleConfigurations(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.identifier: getRuleConfigurations
focal_class.modifiers: private
focal_class.parameters: (final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.return: Map<String, Collection<RuleConfiguration>>
focal_class.signature: Map<String, Collection<RuleConfiguration>> getRuleConfigurations(final Map<String, YamlProxyRuleConfiguration> yamlRuleConfigurations)
focal_class.class_method_signature: GovernanceBootstrapInitializer.getAuthentication(final YamlAuthenticationConfiguration authConfig)
focal_class.full_signature: private Authentication getAuthentication(final YamlAuthenticationConfiguration authConfig)
focal_class.identifier: getAuthentication
focal_class.modifiers: private
focal_class.parameters: (final YamlAuthenticationConfiguration authConfig)
focal_class.return: Authentication
focal_class.signature: Authentication getAuthentication(final YamlAuthenticationConfiguration authConfig)
focal_class.class_method_signature: GovernanceBootstrapInitializer.loadProxyConfiguration()
focal_class.full_signature: private ProxyConfiguration loadProxyConfiguration()
focal_class.identifier: loadProxyConfiguration
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ProxyConfiguration
focal_class.signature: ProxyConfiguration loadProxyConfiguration()
focal_class.class_method_signature: GovernanceBootstrapInitializer.loadDataSourceParametersMap(final Collection<String> schemaNames)
focal_class.full_signature: private Map<String, Map<String, DataSourceParameter>> loadDataSourceParametersMap(final Collection<String> schemaNames)
focal_class.identifier: loadDataSourceParametersMap
focal_class.modifiers: private
focal_class.parameters: (final Collection<String> schemaNames)
focal_class.return: Map<String, Map<String, DataSourceParameter>>
focal_class.signature: Map<String, Map<String, DataSourceParameter>> loadDataSourceParametersMap(final Collection<String> schemaNames)
focal_class.class_method_signature: GovernanceBootstrapInitializer.loadSchemaRules(final Collection<String> schemaNames)
focal_class.full_signature: private Map<String, Collection<RuleConfiguration>> loadSchemaRules(final Collection<String> schemaNames)
focal_class.identifier: loadSchemaRules
focal_class.modifiers: private
focal_class.parameters: (final Collection<String> schemaNames)
focal_class.return: Map<String, Collection<RuleConfiguration>>
focal_class.signature: Map<String, Collection<RuleConfiguration>> loadSchemaRules(final Collection<String> schemaNames)
focal_class.class_method_signature: GovernanceBootstrapInitializer.decorateSchemaContexts(final SchemaContexts schemaContexts)
focal_class.full_signature: @Override protected SchemaContexts decorateSchemaContexts(final SchemaContexts schemaContexts)
focal_class.identifier: decorateSchemaContexts
focal_class.modifiers: @Override protected
focal_class.parameters: (final SchemaContexts schemaContexts)
focal_class.return: SchemaContexts
focal_class.signature: SchemaContexts decorateSchemaContexts(final SchemaContexts schemaContexts)
focal_class.class_method_signature: GovernanceBootstrapInitializer.decorateTransactionContexts(final TransactionContexts transactionContexts)
focal_class.full_signature: @Override protected TransactionContexts decorateTransactionContexts(final TransactionContexts transactionContexts)
focal_class.identifier: decorateTransactionContexts
focal_class.modifiers: @Override protected
focal_class.parameters: (final TransactionContexts transactionContexts)
focal_class.return: TransactionContexts
focal_class.signature: TransactionContexts decorateTransactionContexts(final TransactionContexts transactionContexts)
focal_class.superclass: extends AbstractBootstrapInitializer
focal_method.body: @Override
      protected ProxyConfiguration getProxyConfiguration(final YamlProxyConfiguration yamlConfig) {
          governanceFacade.init(new GovernanceConfigurationYamlSwapper().swapToObject(yamlConfig.getServerConfiguration().getGovernance()), yamlConfig.getRuleConfigurations().keySet());
          initConfigurations(yamlConfig);
          return loadProxyConfiguration();
      }
focal_method.class_method_signature: GovernanceBootstrapInitializer.getProxyConfiguration(final YamlProxyConfiguration yamlConfig)
focal_method.full_signature: @Override protected ProxyConfiguration getProxyConfiguration(final YamlProxyConfiguration yamlConfig)
focal_method.identifier: getProxyConfiguration
focal_method.invocations: init swapToObject getGovernance getServerConfiguration keySet getRuleConfigurations initConfigurations loadProxyConfiguration
focal_method.modifiers: @Override protected
focal_method.parameters: (final YamlProxyConfiguration yamlConfig)
focal_method.return: ProxyConfiguration
focal_method.signature: ProxyConfiguration getProxyConfiguration(final YamlProxyConfiguration yamlConfig)