Package org.infinispan.globalstate
Interface LocalConfigurationStorage
-
public interface LocalConfigurationStorageTheLocalConfigurationStorageis responsible for applying on each node the configuration changes initiated through theGlobalConfigurationManagerand persist them if requested viaCacheContainerAdmin.AdminFlag.PERMANENT.- Since:
- 9.2
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateCache(String name, String template, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)Creates the cache using the supplied template, configuration and flags.voidinitialize(EmbeddedCacheManager embeddedCacheManager)Initialization entry point for theLocalConfigurationStorageMap<String,Configuration>loadAll()Loads all persisted cache configurationsvoidremoveCache(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags)Removes the specified cache.voidvalidateFlags(EnumSet<CacheContainerAdmin.AdminFlag> flags)Checks whether thisLocalConfigurationStoragesupports the supplied flags.
-
-
-
Method Detail
-
initialize
void initialize(EmbeddedCacheManager embeddedCacheManager)
Initialization entry point for theLocalConfigurationStorage- Parameters:
embeddedCacheManager-
-
validateFlags
void validateFlags(EnumSet<CacheContainerAdmin.AdminFlag> flags)
Checks whether thisLocalConfigurationStoragesupports the supplied flags. ACacheConfigurationExceptionwill be thrown in case this cannot be done.
-
createCache
void createCache(String name, String template, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
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, theLocalConfigurationStorageshould use it, e.g. when persisting the configuration.- 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
void removeCache(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags)
Removes the specified cache.- Parameters:
name- the name of the cache to removeflags- the desiredCacheContainerAdmin.AdminFlags
-
loadAll
Map<String,Configuration> loadAll()
Loads all persisted cache configurations
-
-