本文整理汇总了Java中org.apache.marmotta.platform.core.events.ConfigurationChangedEvent.containsChangedKeyWithPrefix方法的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationChangedEvent.containsChangedKeyWithPrefix方法的具体用法?Java ConfigurationChangedEvent.containsChangedKeyWithPrefix怎么用?Java ConfigurationChangedEvent.containsChangedKeyWithPrefix使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.marmotta.platform.core.events.ConfigurationChangedEvent
的用法示例。
在下文中一共展示了ConfigurationChangedEvent.containsChangedKeyWithPrefix方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configurationEventHandler
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationEventHandler(@Observes ConfigurationChangedEvent event) {
if(!isTestEnvironment()) {
if (event.containsChangedKeyWithPrefix("logging.")) {
log.warn("LOGGING: Reloading logging configuration");
configureLoggers();
}
}
}
示例2: onConfigurationChange
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
protected void onConfigurationChange(@Observes ConfigurationChangedEvent event) {
if (event.containsChangedKeyWithPrefix("core.http.")) {
try {
lock.writeLock().lock();
shutdown();
initialize();
} finally {
lock.writeLock().unlock();
}
}
}
示例3: 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"));
}
}
}
示例4: 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));
}
}
示例5: configurationChanged
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
if(e.containsChangedKeyWithPrefix("titan")) {
sesameService.restart();
}
}
示例6: configurationChanged
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
if(e.containsChangedKeyWithPrefix("virtuoso")) {
sesameService.restart();
}
}
示例7: configurationChanged
import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
if(e.containsChangedKeyWithPrefix("bigdata")) {
sesameService.restart();
}
}