public interface LocalConfigurationStorage
LocalConfigurationStorage is responsible for applying on each node the configuration changes initiated
through the GlobalConfigurationManager and persist them if requested via
CacheContainerAdmin.AdminFlag.PERMANENT.| Modifier and Type | Method and Description |
|---|---|
void |
createCache(java.lang.String name,
java.lang.String template,
Configuration configuration,
java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Creates the cache using the supplied template, configuration and flags.
|
void |
initialize(EmbeddedCacheManager embeddedCacheManager)
Initialization entry point for the
LocalConfigurationStorage |
java.util.Map<java.lang.String,Configuration> |
loadAll()
Loads all persisted cache configurations
|
void |
removeCache(java.lang.String name,
java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Removes the specified cache.
|
void |
validateFlags(java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
Checks whether this
LocalConfigurationStorage supports the supplied flags. |
void initialize(EmbeddedCacheManager embeddedCacheManager)
LocalConfigurationStorageembeddedCacheManager - void validateFlags(java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
LocalConfigurationStorage supports the supplied flags.
A CacheConfigurationException will be thrown in case this cannot be done.void createCache(java.lang.String name,
java.lang.String template,
Configuration configuration,
java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
LocalConfigurationStorage should use it, e.g. when persisting the configuration.name - 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.AdminFlagsvoid removeCache(java.lang.String name,
java.util.EnumSet<CacheContainerAdmin.AdminFlag> flags)
name - the name of the cache to removeflags - the desired CacheContainerAdmin.AdminFlagsjava.util.Map<java.lang.String,Configuration> loadAll()