Package org.infinispan.globalstate.impl
Class VolatileLocalConfigurationStorage
- java.lang.Object
-
- org.infinispan.globalstate.impl.VolatileLocalConfigurationStorage
-
- All Implemented Interfaces:
LocalConfigurationStorage
- Direct Known Subclasses:
OverlayLocalConfigurationStorage
public class VolatileLocalConfigurationStorage extends Object implements LocalConfigurationStorage
An implementation ofLocalConfigurationStorage
which does not supportCacheContainerAdmin.AdminFlag.PERMANENT
operations- Since:
- 9.2
- Author:
- Tristan Tarrant
-
-
Field Summary
Fields Modifier and Type Field Description protected EmbeddedCacheManager
cacheManager
protected ConfigurationManager
configurationManager
protected static Log
log
protected ParserRegistry
parserRegistry
-
Constructor Summary
Constructors Constructor Description VolatileLocalConfigurationStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createCache(String name, String template, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
Creates the cache using the supplied template, configuration and flags.void
initialize(EmbeddedCacheManager cacheManager)
Initialization entry point for theLocalConfigurationStorage
Map<String,Configuration>
loadAll()
Loads all persisted cache configurationsvoid
removeCache(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags)
Removes the specified cache.void
validateFlags(EnumSet<CacheContainerAdmin.AdminFlag> flags)
Checks whether thisLocalConfigurationStorage
supports the supplied flags.
-
-
-
Field Detail
-
log
protected static Log log
-
cacheManager
protected EmbeddedCacheManager cacheManager
-
parserRegistry
protected ParserRegistry parserRegistry
-
configurationManager
protected ConfigurationManager configurationManager
-
-
Method Detail
-
initialize
public void initialize(EmbeddedCacheManager cacheManager)
Description copied from interface:LocalConfigurationStorage
Initialization entry point for theLocalConfigurationStorage
- Specified by:
initialize
in interfaceLocalConfigurationStorage
-
validateFlags
public void validateFlags(EnumSet<CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:LocalConfigurationStorage
Checks whether thisLocalConfigurationStorage
supports the supplied flags. ACacheConfigurationException
will be thrown in case this cannot be done.- Specified by:
validateFlags
in interfaceLocalConfigurationStorage
-
createCache
public void createCache(String name, String template, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:LocalConfigurationStorage
Creates the cache using the supplied template, configuration and flags. This method may be invoked either with or without a template. In both cases a concrete configuration will also be available. If a template name is present, theLocalConfigurationStorage
should use it, e.g. when persisting the configuration.- Specified by:
createCache
in interfaceLocalConfigurationStorage
- Parameters:
name
- the name of the cache to createtemplate
- the template that should be used to configure the cache. Can be null.configuration
- theConfiguration
to useflags
- the desiredCacheContainerAdmin.AdminFlag
s
-
removeCache
public void removeCache(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:LocalConfigurationStorage
Removes the specified cache.- Specified by:
removeCache
in interfaceLocalConfigurationStorage
- Parameters:
name
- the name of the cache to removeflags
- the desiredCacheContainerAdmin.AdminFlag
s
-
loadAll
public Map<String,Configuration> loadAll()
Description copied from interface:LocalConfigurationStorage
Loads all persisted cache configurations- Specified by:
loadAll
in interfaceLocalConfigurationStorage
-
-