本文整理了Java中com.hazelcast.config.Config.getConfigPatternMatcher()
方法的一些代码示例,展示了Config.getConfigPatternMatcher()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.getConfigPatternMatcher()
方法的具体详情如下:
包路径:com.hazelcast.config.Config
类名称: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");
内容来源于网络,如有侵权,请联系作者删除!