本文整理了Java中org.infinispan.configuration.cache.Configuration.toString()
方法的一些代码示例,展示了Configuration.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.toString()
方法的具体详情如下:
包路径:org.infinispan.configuration.cache.Configuration
类名称:Configuration
方法名:toString
暂无
代码示例来源:origin: fenix-framework/fenix-framework
private void createDomainCache() {
Configuration conf = makeRequiredConfiguration();
logger.debug("Configuration for {} is: {}", DOMAIN_CACHE_NAME, conf.toString());
this.cacheManager.defineConfiguration(DOMAIN_CACHE_NAME, conf);
final DefaultCacheManager finalCacheManager = this.cacheManager;
this.domainCache = doWithinBackingTransactionIfNeeded(new Callable<Cache<String, DataVersionHolder>>() {
@Override
public Cache<String, DataVersionHolder> call() {
return finalCacheManager.getCache(DOMAIN_CACHE_NAME);
}
});
}
代码示例来源:origin: fenix-framework/fenix-framework
private void createSystemCache() {
Configuration conf = makeRequiredConfiguration();
logger.debug("Configuration for {} is: {}", SYSTEM_CACHE_NAME, conf.toString());
this.cacheManager.defineConfiguration(SYSTEM_CACHE_NAME, conf);
final DefaultCacheManager finalCacheManager = this.cacheManager;
this.systemCache = doWithinBackingTransactionIfNeeded(new Callable<Cache<String, Object>>() {
@Override
public Cache<String, Object> call() {
return finalCacheManager.getCache(SYSTEM_CACHE_NAME);
}
});
}
代码示例来源:origin: org.infinispan/infinispan-cli-interpreter
private Result cacheInfo(Session session) {
Cache<?, ?> cache = session.getCache(cacheName);
Configuration cacheConfiguration = cache.getCacheConfiguration();
return new StringResult(cacheConfiguration.toString());
}
}
代码示例来源:origin: org.infinispan/infinispan-cli-server
private Result cacheInfo(Session session) {
Cache<?, ?> cache = session.getCache(cacheName);
Configuration cacheConfiguration = cache.getCacheConfiguration();
return new StringResult(cacheConfiguration.toString());
}
}
代码示例来源:origin: fenix-framework/fenix-framework
private void createCache() {
Configuration conf = makeRequiredConfiguration();
logger.debug("Configuration for {} is: {}", CACHE_NAME, conf.toString());
this.cacheManager.defineConfiguration(CACHE_NAME, conf);
this.cache = this.cacheManager.getCache(CACHE_NAME).getAdvancedCache().withFlags(Flag.IGNORE_RETURN_VALUES);
// final DefaultCacheManager finalCacheManager = this.cacheManager;
// this.cache = doWithinBackingTransactionIfNeeded(new Callable<Cache<Object, Object>>() {
// @Override
// public Cache<Object, Object> call() {
// return finalCacheManager.getCache(CACHE_NAME).getAdvancedCache().withFlags(Flag.IGNORE_RETURN_VALUES);
// }
// });
}
代码示例来源:origin: fenix-framework/fenix-framework
private void initTransactionManager() {
Configuration conf = makeRequiredConfiguration();
// for the dummy cache disable, cache loaders if any was configured
ConfigurationBuilder confBuilder = new ConfigurationBuilder().read(conf);
confBuilder.loaders().clearCacheLoaders();
conf = confBuilder.build();
String DUMMY_CACHE = "dummy-cache";
logger.debug("Configuration for {} is: {}", DUMMY_CACHE, conf.toString());
try {
this.cacheManager.defineConfiguration(DUMMY_CACHE, conf);
Cache<?, ?> dummyCache = this.cacheManager.getCache(DUMMY_CACHE);
TransactionManager tm = dummyCache.getAdvancedCache().getTransactionManager();
this.transactionManager = tm;
} catch (Exception e) {
logger.error("Failed to get Repository TransactionManager", e);
throw new PersistenceException(e);
}
}
代码示例来源:origin: fenix-framework/fenix-framework
private void initTransactionManager() {
Configuration conf = makeRequiredConfiguration();
// for the dummy cache disable, cache loaders if any was configured
ConfigurationBuilder confBuilder = new ConfigurationBuilder().read(conf);
confBuilder.loaders().clearCacheLoaders();
conf = confBuilder.build();
String DUMMY_CACHE = "dummy-cache";
logger.debug("Configuration for {} is: {}", DUMMY_CACHE, conf.toString());
try {
this.cacheManager.defineConfiguration(DUMMY_CACHE, conf);
Cache<?, ?> dummyCache = this.cacheManager.getCache(DUMMY_CACHE);
TransactionManager tm = dummyCache.getAdvancedCache().getTransactionManager();
this.transactionManager = tm;
} catch (Exception e) {
logger.error("Failed to get Repository TransactionManager", e);
throw new PersistenceException(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!