public class DefaultCacheContainer extends org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager implements CacheContainer
Constructor and Description |
---|
DefaultCacheContainer(String name,
org.infinispan.manager.EmbeddedCacheManager container,
String defaultCacheName) |
DefaultCacheContainer(String name,
org.infinispan.manager.EmbeddedCacheManager container,
String defaultCacheName,
BatcherFactory batcherFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addCacheDependency(String from,
String to) |
boolean |
cacheExists(String cacheName) |
org.infinispan.configuration.cache.Configuration |
defineConfiguration(String cacheName,
org.infinispan.configuration.cache.Configuration configuration) |
org.infinispan.configuration.cache.Configuration |
defineConfiguration(String cacheName,
String templateCacheName,
org.infinispan.configuration.cache.Configuration configurationOverride) |
<K,V> org.infinispan.Cache<K,V> |
getCache() |
<K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName) |
<K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName,
boolean createIfAbsent) |
<K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName,
String configurationName) |
<K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName,
String configurationTemplate,
boolean createIfAbsent) |
org.infinispan.configuration.cache.Configuration |
getCacheConfiguration(String name) |
org.infinispan.configuration.cache.Configuration |
getDefaultCacheConfiguration() |
String |
getDefaultCacheName()
Returns the name of the default cache.
|
String |
getName()
Returns the name of this cache container.
|
int |
hashCode() |
boolean |
isDefaultRunning() |
boolean |
isRunning(String cacheName) |
void |
removeCache(String cacheName) |
void |
start() |
org.infinispan.manager.EmbeddedCacheManager |
startCaches(String... names) |
void |
stop() |
String |
toString() |
void |
undefineConfiguration(String cacheName) |
addListener, executor, getAddress, getCacheConfigurationNames, getCacheManagerConfiguration, getCacheNames, getClusterName, getCoordinator, getGlobalComponentRegistry, getListeners, getMembers, getStats, getStatus, getTransport, isCoordinator, removeListener
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
public DefaultCacheContainer(String name, org.infinispan.manager.EmbeddedCacheManager container, String defaultCacheName)
public DefaultCacheContainer(String name, org.infinispan.manager.EmbeddedCacheManager container, String defaultCacheName, BatcherFactory batcherFactory)
public String getName()
CacheContainer
public void start()
start
in interface org.infinispan.commons.api.Lifecycle
start
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public void stop()
stop
in interface org.infinispan.commons.api.Lifecycle
stop
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public String getDefaultCacheName()
CacheContainer
public org.infinispan.configuration.cache.Configuration defineConfiguration(String cacheName, org.infinispan.configuration.cache.Configuration configuration)
defineConfiguration
in interface org.infinispan.manager.EmbeddedCacheManager
defineConfiguration
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public org.infinispan.configuration.cache.Configuration defineConfiguration(String cacheName, String templateCacheName, org.infinispan.configuration.cache.Configuration configurationOverride)
defineConfiguration
in interface org.infinispan.manager.EmbeddedCacheManager
defineConfiguration
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public void undefineConfiguration(String cacheName)
undefineConfiguration
in interface org.infinispan.manager.EmbeddedCacheManager
undefineConfiguration
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public org.infinispan.configuration.cache.Configuration getDefaultCacheConfiguration()
getDefaultCacheConfiguration
in interface org.infinispan.manager.EmbeddedCacheManager
getDefaultCacheConfiguration
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public org.infinispan.configuration.cache.Configuration getCacheConfiguration(String name)
getCacheConfiguration
in interface org.infinispan.manager.EmbeddedCacheManager
getCacheConfiguration
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public <K,V> org.infinispan.Cache<K,V> getCache()
getCache
in interface org.infinispan.commons.api.BasicCacheContainer
getCache
in interface org.infinispan.manager.CacheContainer
getCache
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
CacheContainer.getCache()
public <K,V> org.infinispan.Cache<K,V> getCache(String cacheName)
getCache
in interface org.infinispan.commons.api.BasicCacheContainer
getCache
in interface org.infinispan.manager.CacheContainer
getCache
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public <K,V> org.infinispan.Cache<K,V> getCache(String cacheName, String configurationName)
getCache
in interface org.infinispan.manager.EmbeddedCacheManager
getCache
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public <K,V> org.infinispan.Cache<K,V> getCache(String cacheName, boolean createIfAbsent)
getCache
in interface org.infinispan.manager.EmbeddedCacheManager
getCache
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public <K,V> org.infinispan.Cache<K,V> getCache(String cacheName, String configurationTemplate, boolean createIfAbsent)
getCache
in interface org.infinispan.manager.EmbeddedCacheManager
getCache
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public boolean isDefaultRunning()
isDefaultRunning
in interface org.infinispan.manager.EmbeddedCacheManager
isDefaultRunning
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
EmbeddedCacheManager.isDefaultRunning()
public boolean isRunning(String cacheName)
isRunning
in interface org.infinispan.manager.EmbeddedCacheManager
isRunning
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
EmbeddedCacheManager.isRunning(String)
public boolean cacheExists(String cacheName)
cacheExists
in interface org.infinispan.manager.EmbeddedCacheManager
cacheExists
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
EmbeddedCacheManager.cacheExists(java.lang.String)
public void removeCache(String cacheName)
removeCache
in interface org.infinispan.manager.EmbeddedCacheManager
removeCache
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
EmbeddedCacheManager.removeCache(java.lang.String)
public org.infinispan.manager.EmbeddedCacheManager startCaches(String... names)
startCaches
in interface org.infinispan.manager.EmbeddedCacheManager
startCaches
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public void addCacheDependency(String from, String to)
addCacheDependency
in interface org.infinispan.manager.EmbeddedCacheManager
addCacheDependency
in class org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2017 JBoss by Red Hat. All rights reserved.