本文整理汇总了Java中org.apache.marmotta.platform.core.events.ConfigurationChangedEvent.containsChangedKey方法的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationChangedEvent.containsChangedKey方法的具体用法?Java ConfigurationChangedEvent.containsChangedKey怎么用?Java ConfigurationChangedEvent.containsChangedKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.marmotta.platform.core.events.ConfigurationChangedEvent
的用法示例。
在下文中一共展示了ConfigurationChangedEvent.containsChangedKey方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configurationChanged
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
log.info("configuration changed: {}", e.getKeys());
if(e.containsChangedKey(KiWiOptions.SPARQL_STRATEGY) ||
e.containsChangedKey(KiWiOptions.DATACENTER_ID) ||
e.containsChangedKey(KiWiOptions.CONTEXTS_DEFAULT) ||
e.containsChangedKey(KiWiOptions.CONTEXTS_INFERRED) ||
e.containsChangedKey(KiWiOptions.FULLTEXT_ENABLED) ||
e.containsChangedKey(KiWiOptions.FULLTEXT_LANGUAGES) ||
e.containsChangedKey(KiWiOptions.DEBUG_SLOWQUERIES) ||
e.containsChangedKey(KiWiOptions.CLUSTERING_ENABLED) ||
e.containsChangedKey(KiWiOptions.CACHING_LITERAL_SIZE) ||
e.containsChangedKey(KiWiOptions.CACHING_TRIPLE_SIZE) ||
e.containsChangedKey(KiWiOptions.CACHING_URI_SIZE) ||
e.containsChangedKey(KiWiOptions.CACHING_BNODE_SIZE) ||
e.containsChangedKey(KiWiOptions.CACHING_QUERY_ENABLED) ||
e.containsChangedKey(KiWiOptions.CLUSTERING_BACKEND) ||
e.containsChangedKey(KiWiOptions.CLUSTERING_ADDRESS) ||
e.containsChangedKey(KiWiOptions.CLUSTERING_PORT) ||
e.containsChangedKey(KiWiOptions.CLUSTERING_MODE)
) {
log.info("KiWi backend configuration changed, re-initialising triple store");
sesameService.restart();
}
}
示例2: onConfigurationChangedEvent
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
protected void onConfigurationChangedEvent(@Observes ConfigurationChangedEvent event) {
if (event.containsChangedKeyWithPrefix(CONFIG_PREFIX)) {
if (event.containsChangedKey(CONFIG_KEY_SERVICE_ENABLED)) {
shutdown();
startup();
} else if (importWatcher != null) {
importWatcher.setDeleteAfterImport(configurationService.getBooleanConfiguration(CONFIG_KEY_DELETE_AFTER_IMPORT, true));
importWatcher.setImportDelay(configurationService.getIntConfiguration(CONFIG_KEY_IMPORT_DELAY, 2500));
importWatcher.setDirConfigFileName(configurationService.getStringConfiguration(CONFIG_KEY_CONF_FILE, "config"));
importWatcher.setLockFile(configurationService.getStringConfiguration(CONFIG_KEY_LOCK_FILE, "lock"));
}
}
}
示例3: configurationChangedEvent
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChangedEvent(@Observes ConfigurationChangedEvent event) {
if (event.containsChangedKey("statistics.enabled")) {
if(configurationService.getBooleanConfiguration("statistics.enabled",false)) {
enableAll();
} else {
disableAll();
}
}
}
示例4: configurationChanged
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
if(e.containsChangedKey(LDCACHE_ENABLED)) {
sesameService.restart();
if(!isEnabled()) {
clearSail();
}
}
}
示例5: configurationChanged
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
if(e.containsChangedKey(REASONING_ENABLED)) {
sesameService.restart();
if(!isEnabled()) {
sail = null;
}
} else if(e.containsChangedKeyWithPrefix("reasoning")) {
ReasoningConfiguration config = sail.getConfig();
config.setBatchSize(configurationService.getIntConfiguration("reasoning.batchsize",1000));
config.setRemoveDuplicateJustifications(configurationService.getBooleanConfiguration("reasoning.remove_duplicate_justifications",false));
}
}
示例6: configurationChanged
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
if(e.containsChangedKey(VERSIONING_ENABLED)) {
sesameService.restart();
}
}
示例7: onConfigurationChange
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
protected void onConfigurationChange(@Observes ConfigurationChangedEvent event) {
if (event.containsChangedKey("user.auth.provider")) {
initialize();
}
}
示例8: onConfigurationChange
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void onConfigurationChange(@Observes ConfigurationChangedEvent event) {
if (event.containsChangedKey("security.password.hash")) {
initialize();
}
}