Codota Logo
ConfigurationService.isShardingRule
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Path (java.nio.file)
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now