public class OverlayLocalConfigurationStorage extends VolatileLocalConfigurationStorage
LocalConfigurationStorage which stores non-CacheContainerAdmin.AdminFlag.VOLATILE
This component persists cache configurations to the GlobalStateConfiguration.persistentLocation() in a
caches.xmlfile which is read on startup.
blockingManager, cacheManager, configurationManager, log, parserRegistry| Constructor and Description |
|---|
OverlayLocalConfigurationStorage() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
createCache(String name,
String template,
Configuration configuration,
EnumSet<CacheContainerAdmin.AdminFlag> flags)
Creates the cache using the supplied template, configuration and flags.
|
Map<String,Configuration> |
loadAll()
Loads all persisted cache configurations
|
CompletableFuture<Void> |
removeCache(String name,
EnumSet<CacheContainerAdmin.AdminFlag> flags)
Removes the specified cache.
|
void |
validateFlags(EnumSet<CacheContainerAdmin.AdminFlag> flags)
Checks whether this
LocalConfigurationStorage supports the supplied flags. |
initialize, removeCacheSyncpublic void validateFlags(EnumSet<CacheContainerAdmin.AdminFlag> flags)
LocalConfigurationStorageLocalConfigurationStorage supports the supplied flags.
A CacheConfigurationException will be thrown in case this cannot be done.validateFlags in interface LocalConfigurationStoragevalidateFlags in class VolatileLocalConfigurationStoragepublic CompletableFuture<Void> createCache(String name, String template, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags)
LocalConfigurationStorageLocalConfigurationStorage should use it, e.g. when persisting the configuration.createCache in interface LocalConfigurationStoragecreateCache in class VolatileLocalConfigurationStoragename - the name of the cache to createtemplate - the template that should be used to configure the cache. Can be null.configuration - the Configuration to useflags - the desired CacheContainerAdmin.AdminFlagspublic CompletableFuture<Void> removeCache(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags)
LocalConfigurationStorageremoveCache in interface LocalConfigurationStorageremoveCache in class VolatileLocalConfigurationStoragename - the name of the cache to removeflags - the desired CacheContainerAdmin.AdminFlagspublic Map<String,Configuration> loadAll()
LocalConfigurationStorageloadAll in interface LocalConfigurationStorageloadAll in class VolatileLocalConfigurationStorageCopyright © 2022 JBoss by Red Hat. All rights reserved.