本文整理了Java中org.infinispan.commons.logging.Log.info()
方法的一些代码示例,展示了Log.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Log.info()
方法的具体详情如下:
包路径:org.infinispan.commons.logging.Log
类名称:Log
方法名:info
暂无
代码示例来源:origin: org.infinispan/infinispan-spring5-embedded
/**
* @see InitializingBean#afterPropertiesSet()
*/
@Override
public void afterPropertiesSet() throws Exception {
if (this.infinispanCacheContainer == null) {
throw new IllegalStateException("No Infinispan CacheContainer has been set");
}
this.logger.info("Initializing named Infinispan cache ...");
this.infinispanCache = this.infinispanCacheContainer.getCache();
this.logger.info("New Infinispan cache [" + this.infinispanCache + "] initialized");
}
代码示例来源:origin: org.infinispan/infinispan-spring5-remote
/**
* @see InitializingBean#afterPropertiesSet()
*/
@Override
public void afterPropertiesSet() throws Exception {
if (this.infinispanRemoteCacheManager == null) {
throw new IllegalStateException("No Infinispan RemoteCacheManager has been set");
}
this.logger.info("Initializing named Infinispan remote cache ...");
final String effectiveCacheName = obtainEffectiveCacheName();
this.infinispanCache = this.infinispanRemoteCacheManager.getCache(effectiveCacheName);
this.logger.info("New Infinispan remote cache [" + this.infinispanCache + "] initialized");
}
代码示例来源:origin: org.infinispan/infinispan-avro-server
public Schema retrieveSchema(String name) throws IOException, InterruptedException, ClassNotFoundException {
if (!knownSchemas.containsKey(name)) {
byte[] key = marshaller.objectToByteBuffer(name);
byte[] value = (byte[]) cacheManager.getCache(Support.AVRO_METADATA_CACHE_NAME).get(key);
if (value==null)
throw new IOException(name+" not found in the metadata cache");
Schema schema = (Schema) marshaller.objectFromByteBuffer(value);
knownSchemas.put(name, schema);
log.info("adding schama "+name+" to metadata cache");
}
return knownSchemas.get(name);
}
代码示例来源:origin: org.infinispan/infinispan-spring5-remote
/**
* @see InitializingBean#afterPropertiesSet()
*/
@Override
public void afterPropertiesSet() throws Exception {
assertCorrectlyConfigured();
this.logger.info("Creating new instance of RemoteCacheManager ...");
final Properties configurationPropertiesToUse = configurationProperties();
org.infinispan.client.hotrod.configuration.ConfigurationBuilder clientBuilder =
new org.infinispan.client.hotrod.configuration.ConfigurationBuilder();
clientBuilder.withProperties(configurationPropertiesToUse);
long readTimeout;
if (configurationPropertiesToUse.containsKey(ConfigurationPropertiesOverrides.OPERATION_READ_TIMEOUT))
readTimeout = Long.parseLong(configurationPropertiesToUse.getProperty(ConfigurationPropertiesOverrides.OPERATION_READ_TIMEOUT));
else
readTimeout = 0;
long writeTimeout;
if (configurationPropertiesToUse.containsKey(ConfigurationPropertiesOverrides.OPERATION_WRITE_TIMEOUT))
writeTimeout = Long.parseLong(configurationPropertiesToUse.getProperty(ConfigurationPropertiesOverrides.OPERATION_WRITE_TIMEOUT));
else
writeTimeout = 0;
final RemoteCacheManager nativeRemoteCacheManager = new RemoteCacheManager(
clientBuilder.build(), this.startAutomatically);
this.springRemoteCacheManager = new SpringRemoteCacheManager(nativeRemoteCacheManager, readTimeout, writeTimeout);
this.logger.info("Finished creating new instance of RemoteCacheManager");
}
代码示例来源:origin: org.infinispan/infinispan-spring5-remote
/**
* @see InitializingBean#afterPropertiesSet()
*/
@Override
public void afterPropertiesSet() throws Exception {
assertCorrectlyConfigured();
this.logger.info("Creating new instance of RemoteCacheManager ...");
final Properties configurationPropertiesToUse = configurationProperties();
org.infinispan.client.hotrod.configuration.ConfigurationBuilder clientBuilder =
new org.infinispan.client.hotrod.configuration.ConfigurationBuilder();
clientBuilder.withProperties(configurationPropertiesToUse);
this.nativeRemoteCacheManager = new RemoteCacheManager(clientBuilder.build(),
this.startAutomatically);
this.logger.info("Finished creating new instance of RemoteCacheManager");
}
代码示例来源:origin: org.infinispan/infinispan-lucene-directory
public void testLuceneCacheLoaderWithNonReadableDir() throws IOException {
boolean isReadOff = rootDir.setReadable(false);
if(isReadOff) {
final EmbeddedCacheManager cacheManager = initializeInfinispan(rootDir);
TestingUtil.withCacheManager(new CacheManagerCallable(cacheManager) {
@Override
public void call() {
try {
Cache cache = cacheManager.getCache();
DirectoryBuilder.newDirectoryInstance(cache, cache, cache, indexName).create();
} catch(Exception ex) {
assert ex instanceof CacheException;
} finally {
rootDir.setReadable(true);
}
}
});
} else {
log.info("Skipping test because it is not possible to make the directory non-readable, i.e. because the tests are run with the root user.");
}
}
内容来源于网络,如有侵权,请联系作者删除!