|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EmbeddedCacheManager
EmbeddedCacheManager is an CacheManager that runs in the same JVM as the client.
Constructing a EmbeddedCacheManager is done via one of its constructors, which optionally take in aConfiguration
or a path or URL to a configuration XML file: see DefaultCacheManager
.
Lifecycle - EmbeddedCacheManagers have a lifecycle (it implements Lifecycle
) and
the default constructors also call Lifecycle.start()
. Overloaded versions of the constructors are available, that do
not start the CacheManager, although it must be kept in mind that CacheManagers need to be started
before they can be used to create Cache instances.
Once constructed, EmbeddedCacheManagers should be made available to any component that requires a Cache,
via JNDI or via some other mechanism
such as an dependency injection framework.
DefaultCacheManager
Field Summary |
---|
Fields inherited from interface org.infinispan.manager.CacheContainer |
---|
DEFAULT_CACHE_NAME |
Method Summary | |
---|---|
Configuration |
defineConfiguration(String cacheName,
Configuration configurationOverride)
Defines a named cache's configuration using the following algorithm: If cache name hasn't been defined before, this method creates a clone of the default cache's configuration, applies a clone of the configuration overrides passed in and returns this configuration instance. |
Configuration |
defineConfiguration(String cacheName,
String templateCacheName,
Configuration configurationOverride)
Defines a named cache's configuration using the following algorithm: Regardless of whether the cache name has been defined or not, this method creates a clone of the configuration of the cache whose name matches the given template cache name, then applies a clone of the configuration overrides passed in and finally returns this configuration instance. |
Address |
getAddress()
|
Set<String> |
getCacheNames()
If no named caches are registered, this method returns an empty set. |
String |
getClusterName()
|
Configuration |
getDefaultConfiguration()
Returns default configuration for this CacheManager |
GlobalConfiguration |
getGlobalConfiguration()
Returns global configuration for this CacheManager |
List<Address> |
getMembers()
|
ComponentStatus |
getStatus()
|
boolean |
isCoordinator()
|
Methods inherited from interface org.infinispan.manager.CacheContainer |
---|
getCache, getCache |
Methods inherited from interface org.infinispan.lifecycle.Lifecycle |
---|
start, stop |
Methods inherited from interface org.infinispan.notifications.Listenable |
---|
addListener, getListeners, removeListener |
Method Detail |
---|
Configuration defineConfiguration(String cacheName, Configuration configurationOverride)
cacheName
- name of cache whose configuration is being definedconfigurationOverride
- configuration overrides to use
Configuration defineConfiguration(String cacheName, String templateCacheName, Configuration configurationOverride)
defineConfiguration(String, Configuration)
in the sense that the base configuration used is the default cache
configuration.
cacheName
- name of cache whose configuration is being definedtemplateCacheName
- name of cache to which to which apply overrides if cache name has not been previously
definedconfigurationOverride
- configuration overrides to use
String getClusterName()
List<Address> getMembers()
Address getAddress()
boolean isCoordinator()
ComponentStatus getStatus()
GlobalConfiguration getGlobalConfiguration()
Configuration getDefaultConfiguration()
Set<String> getCacheNames()
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |