当前位置: 首页>>代码示例>>Java>>正文


Java ConfigurationChangedEvent.containsChangedKeyWithPrefix方法代码示例

本文整理汇总了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();
        }
    }
}
 
开发者ID:apache,项目名称:marmotta,代码行数:9,代码来源:LoggingServiceImpl.java

示例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();
        }
    }
}
 
开发者ID:apache,项目名称:marmotta,代码行数:12,代码来源:HttpClientServiceImpl.java

示例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"));
        }
    }
}
 
开发者ID:apache,项目名称:marmotta,代码行数:14,代码来源:ImportWatchServiceImpl.java

示例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));
    }
}
 
开发者ID:apache,项目名称:marmotta,代码行数:14,代码来源:ReasoningSailProvider.java

示例5: configurationChanged

import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
	if(e.containsChangedKeyWithPrefix("titan")) {
		sesameService.restart();
	}
}
 
开发者ID:vigsterkr,项目名称:marmotta-titan,代码行数:6,代码来源:TitanStoreProvider.java

示例6: configurationChanged

import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
    if(e.containsChangedKeyWithPrefix("virtuoso")) {
        sesameService.restart();
    }
}
 
开发者ID:wikier,项目名称:marmotta-virtuoso,代码行数:6,代码来源:VirtuosoStoreProvider.java

示例7: configurationChanged

import org.apache.marmotta.platform.core.events.ConfigurationChangedEvent; //导入方法依赖的package包/类
public void configurationChanged(@Observes ConfigurationChangedEvent e) {
    if(e.containsChangedKeyWithPrefix("bigdata")) {
        sesameService.restart();
    }
}
 
开发者ID:apache,项目名称:marmotta,代码行数:6,代码来源:BigDataStoreProvider.java


注:本文中的org.apache.marmotta.platform.core.events.ConfigurationChangedEvent.containsChangedKeyWithPrefix方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。