@Override public <K, V> Cache<K, V> getCache() { return this.getCache(CacheContainer.DEFAULT_CACHE_NAME); }
String containerName = this.appendCacheName(globalConfig.getCacheManagerName(), cacheName); EmbeddedCacheManager container = this.containers.get(containerName); global.setClusterName(this.appendCacheName(globalConfig.getClusterName(), cacheName)); global.getTransportProperties().setProperty(DefaultCacheContainerFactory.CHANNEL_ID, global.getClusterName());
/** * {@inheritDoc} * @see org.infinispan.manager.EmbeddedCacheManager#isRunning(java.lang.String) */ @Override public boolean isRunning(String cacheName) { EmbeddedCacheManager container = this.containers.get(this.appendCacheName(this.container.getGlobalConfiguration().getCacheManagerName(), cacheName)); return (container != null) ? container.isDefaultRunning() : this.container.isRunning(cacheName); }
return new DefaultCacheContainer(manager);