Tabnine Logo
ConfigurationService.isShardingRule
Code IndexAdd Tabnine to your IDE (free)

How to use
isShardingRule
method
in
org.apache.shardingsphere.orchestration.internal.registry.config.service.ConfigurationService

Best Java code snippets using org.apache.shardingsphere.orchestration.internal.registry.config.service.ConfigurationService.isShardingRule (Showing top 3 results out of 315)

origin: apache/incubator-shardingsphere

private RuleConfiguration createRuleConfiguration(final String shardingSchemaName) {
  return configurationService.isShardingRule(shardingSchemaName) 
      ? configurationService.loadShardingRuleConfiguration(shardingSchemaName) : configurationService.loadMasterSlaveRuleConfiguration(shardingSchemaName);
}

origin: apache/incubator-shardingsphere

private static Map<String, RuleConfiguration> getSchemaRules(final ShardingOrchestrationFacade shardingOrchestrationFacade) {
  Map<String, RuleConfiguration> result = new LinkedHashMap<>();
  for (String each : shardingOrchestrationFacade.getConfigService().getAllShardingSchemaNames()) {
    if (shardingOrchestrationFacade.getConfigService().isShardingRule(each)) {
      result.put(each, shardingOrchestrationFacade.getConfigService().loadShardingRuleConfiguration(each));
    } else {
      result.put(each, shardingOrchestrationFacade.getConfigService().loadMasterSlaveRuleConfiguration(each));
    }
  }
  return result;
}

origin: apache/incubator-shardingsphere

private static Map<String, RuleConfiguration> getSchemaRules(final ShardingOrchestrationFacade shardingOrchestrationFacade) {
  Map<String, RuleConfiguration> result = new LinkedHashMap<>();
  for (String each : shardingOrchestrationFacade.getConfigService().getAllShardingSchemaNames()) {
    if (shardingOrchestrationFacade.getConfigService().isShardingRule(each)) {
      result.put(each, shardingOrchestrationFacade.getConfigService().loadShardingRuleConfiguration(each));
    } else {
      result.put(each, shardingOrchestrationFacade.getConfigService().loadMasterSlaveRuleConfiguration(each));
    }
  }
  return result;
}

org.apache.shardingsphere.orchestration.internal.registry.config.serviceConfigurationServiceisShardingRule

Javadoc

Judge is sharding rule or master-slave rule.

Popular methods of ConfigurationService

  • loadDataSourceConfigurations
    Load data source configurations.
  • loadMasterSlaveRuleConfiguration
    Load master-slave rule configuration.
  • loadShardingRuleConfiguration
    Load sharding rule configuration.
  • getAllShardingSchemaNames
    Get all sharding schema names.
  • loadConfigMap
    Load config map.
  • loadProperties
    Load properties configuration.
  • loadAuthentication
    Load authentication.
  • <init>
  • hasAuthentication
  • hasConfigMap
  • hasDataSourceConfiguration
    Judge whether schema has data source configuration.
  • hasProperties
  • hasDataSourceConfiguration,
  • hasProperties,
  • hasRuleConfiguration,
  • persistAuthentication,
  • persistConfigMap,
  • persistConfiguration,
  • persistDataSourceConfiguration,
  • persistMasterSlaveRuleConfiguration,
  • persistProperties

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Permission (java.security)
    Legacy security code; do not use.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now