Package org.infinispan.globalstate.impl
Class OverlayLocalConfigurationStorage
- java.lang.Object
-
- org.infinispan.globalstate.impl.VolatileLocalConfigurationStorage
-
- org.infinispan.globalstate.impl.OverlayLocalConfigurationStorage
-
- All Implemented Interfaces:
LocalConfigurationStorage
public class OverlayLocalConfigurationStorage extends VolatileLocalConfigurationStorage
An implementation ofLocalConfigurationStoragewhich stores non-CacheContainerAdmin.AdminFlag.VOLATILEThis component persists cache configurations to the
GlobalStateConfiguration.persistentLocation()in acaches.xml
file which is read on startup.- Since:
- 9.2
- Author:
- Tristan Tarrant
-
-
Field Summary
-
Fields inherited from class org.infinispan.globalstate.impl.VolatileLocalConfigurationStorage
blockingManager, cacheManager, configurationManager, log, parserRegistry
-
-
Constructor Summary
Constructors Constructor Description OverlayLocalConfigurationStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>createCache(String name, String template, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)Creates the cache using the supplied template, configuration and flags.Map<String,Configuration>loadAll()Loads all persisted cache configurationsCompletableFuture<Void>removeCache(String name, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)Removes the specified cache.voidvalidateFlags(EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)Checks whether thisLocalConfigurationStoragesupports the supplied flags.-
Methods inherited from class org.infinispan.globalstate.impl.VolatileLocalConfigurationStorage
initialize, removeCacheSync
-
-
-
-
Method Detail
-
validateFlags
public void validateFlags(EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:LocalConfigurationStorageChecks whether thisLocalConfigurationStoragesupports the supplied flags. ACacheConfigurationExceptionwill be thrown in case this cannot be done.- Specified by:
validateFlagsin interfaceLocalConfigurationStorage- Overrides:
validateFlagsin classVolatileLocalConfigurationStorage
-
createCache
public CompletableFuture<Void> createCache(String name, String template, Configuration configuration, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:LocalConfigurationStorageCreates 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, theLocalConfigurationStorageshould use it, e.g. when persisting the configuration.- Specified by:
createCachein interfaceLocalConfigurationStorage- Overrides:
createCachein classVolatileLocalConfigurationStorage- Parameters:
name- the name of the cache to createtemplate- the template that should be used to configure the cache. Can be null.configuration- theConfigurationto useflags- the desiredCacheContainerAdmin.AdminFlags
-
removeCache
public CompletableFuture<Void> removeCache(String name, EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags)
Description copied from interface:LocalConfigurationStorageRemoves the specified cache.- Specified by:
removeCachein interfaceLocalConfigurationStorage- Overrides:
removeCachein classVolatileLocalConfigurationStorage- Parameters:
name- the name of the cache to removeflags- the desiredCacheContainerAdmin.AdminFlags
-
loadAll
public Map<String,Configuration> loadAll()
Description copied from interface:LocalConfigurationStorageLoads all persisted cache configurations- Specified by:
loadAllin interfaceLocalConfigurationStorage- Overrides:
loadAllin classVolatileLocalConfigurationStorage
-
-