com.hazelcast.config.Config.getConfigPatternMatcher()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中com.hazelcast.config.Config.getConfigPatternMatcher()方法的一些代码示例,展示了Config.getConfigPatternMatcher()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.getConfigPatternMatcher()方法的具体详情如下:
包路径:com.hazelcast.config.Config
类名称:Config
方法名:getConfigPatternMatcher

Config.getConfigPatternMatcher介绍

[英]Returns the pattern matcher which is used to match item names to configuration objects. By default the MatchingPointConfigPatternMatcher is used.
[中]返回用于将项名称与配置对象匹配的模式匹配器。默认情况下,使用MatchingPointConfigPatternMatcher。

代码示例

代码示例来源:origin: hazelcast/hazelcast-jet

@Override
public ConfigPatternMatcher getConfigPatternMatcher() {
  return staticConfig.getConfigPatternMatcher();
}

代码示例来源:origin: com.hazelcast/hazelcast-all

@Override
public ConfigPatternMatcher getConfigPatternMatcher() {
  return staticConfig.getConfigPatternMatcher();
}

代码示例来源:origin: com.hazelcast/hazelcast-all

private QueryCacheConfig findQueryCacheConfigFromMapConfig(MapConfig mapConfig, String cacheName) {
  List<QueryCacheConfig> queryCacheConfigs = mapConfig.getQueryCacheConfigs();
  Map<String, QueryCacheConfig> allQueryCacheConfigs = new HashMap<String, QueryCacheConfig>(queryCacheConfigs.size());
  for (QueryCacheConfig queryCacheConfig : queryCacheConfigs) {
    allQueryCacheConfigs.put(queryCacheConfig.getName(), queryCacheConfig);
  }
  return ConfigUtils.lookupByPattern(config.getConfigPatternMatcher(), allQueryCacheConfigs, cacheName);
}

代码示例来源:origin: hazelcast/hazelcast-jet

private QueryCacheConfig findQueryCacheConfigFromMapConfig(MapConfig mapConfig, String cacheName) {
  List<QueryCacheConfig> queryCacheConfigs = mapConfig.getQueryCacheConfigs();
  Map<String, QueryCacheConfig> allQueryCacheConfigs = new HashMap<String, QueryCacheConfig>(queryCacheConfigs.size());
  for (QueryCacheConfig queryCacheConfig : queryCacheConfigs) {
    allQueryCacheConfigs.put(queryCacheConfig.getName(), queryCacheConfig);
  }
  return ConfigUtils.lookupByPattern(config.getConfigPatternMatcher(), allQueryCacheConfigs, cacheName);
}

代码示例来源:origin: com.hazelcast/hazelcast-all

public ClusterWideConfigurationService(NodeEngine nodeEngine, DynamicConfigListener dynamicConfigListener) {
  this.nodeEngine = nodeEngine;
  this.listener = dynamicConfigListener;
  this.configPatternMatcher = nodeEngine.getConfig().getConfigPatternMatcher();
  this.logger = nodeEngine.getLogger(ClusterWideConfigurationService.class);
}

代码示例来源:origin: hazelcast/hazelcast-jet

public ClusterWideConfigurationService(NodeEngine nodeEngine, DynamicConfigListener dynamicConfigListener) {
  this.nodeEngine = nodeEngine;
  this.listener = dynamicConfigListener;
  this.configPatternMatcher = nodeEngine.getConfig().getConfigPatternMatcher();
  this.logger = nodeEngine.getLogger(ClusterWideConfigurationService.class);
}

代码示例来源:origin: hazelcast/hazelcast-jet

public DynamicConfigurationAwareConfig(Config staticConfig, HazelcastProperties properties) {
  assert !(staticConfig instanceof DynamicConfigurationAwareConfig) : "A static Config object is required";
  this.staticConfig = staticConfig;
  this.configPatternMatcher = staticConfig.getConfigPatternMatcher();
  this.isStaticFirst = !properties.getBoolean(SEARCH_DYNAMIC_CONFIG_FIRST);
  this.dynamicSecurityConfig = new DynamicSecurityConfig(staticConfig.getSecurityConfig(), null);
  this.configSearcher = initConfigSearcher();
}

代码示例来源:origin: com.hazelcast/hazelcast-all

public DynamicConfigurationAwareConfig(Config staticConfig, HazelcastProperties properties) {
  assert !(staticConfig instanceof DynamicConfigurationAwareConfig) : "A static Config object is required";
  this.staticConfig = staticConfig;
  this.configPatternMatcher = staticConfig.getConfigPatternMatcher();
  this.isStaticFirst = !properties.getBoolean(SEARCH_DYNAMIC_CONFIG_FIRST);
  this.dynamicSecurityConfig = new DynamicSecurityConfig(staticConfig.getSecurityConfig(), null);
  this.configSearcher = initConfigSearcher();
}

代码示例来源:origin: hazelcast/hazelcast-jet

private static void configureJetService(JetConfig jetConfig) {
  Config hzConfig = jetConfig.getHazelcastConfig();
  if (!(hzConfig.getConfigPatternMatcher() instanceof MatchingPointConfigPatternMatcher)) {
    throw new UnsupportedOperationException("Custom config pattern matcher is not supported in Jet");

相关文章

Config类方法